/// <summary> /// LoadInProgressServicesByCompanyLevelId /// </summary> /// <param name="companyId">companyId</param> /// <param name="companyLevelId">companyLevelId</param> public void LoadInProgressServicesByCompanyLevelId(int companyId, int companyLevelId) { DashboardInProgressServiceRequestsGateway dashboardInProgressServiceRequestsGateway = new DashboardInProgressServiceRequestsGateway(Data); dashboardInProgressServiceRequestsGateway.Table.Clear(); dashboardInProgressServiceRequestsGateway.ClearBeforeFill = false; dashboardInProgressServiceRequestsGateway.LoadServicesByStateCompanyLevelId("Assigned", companyId, companyLevelId); dashboardInProgressServiceRequestsGateway.LoadServicesByStateCompanyLevelId("Accepted", companyId, companyLevelId); dashboardInProgressServiceRequestsGateway.LoadServicesByStateCompanyLevelId("Rejected", companyId, companyLevelId); dashboardInProgressServiceRequestsGateway.LoadServicesByStateCompanyLevelId("In Progress", companyId, companyLevelId); dashboardInProgressServiceRequestsGateway.LoadServicesByStateCompanyLevelId("Completed", companyId, companyLevelId); dashboardInProgressServiceRequestsGateway.ClearBeforeFill = true; }
/// <summary> /// LoadInProgressServicesByUnitType /// </summary> /// <param name="companyId">companyId</param> /// <param name="unitType">unitType</param> public void LoadInProgressServicesByUnitType(int companyId, string unitType) { DashboardInProgressServiceRequestsGateway dashboardInProgressServiceRequestsGateway = new DashboardInProgressServiceRequestsGateway(Data); dashboardInProgressServiceRequestsGateway.Table.Clear(); dashboardInProgressServiceRequestsGateway.ClearBeforeFill = false; dashboardInProgressServiceRequestsGateway.LoadServicesByStateUnitType("Assigned", companyId, unitType); dashboardInProgressServiceRequestsGateway.LoadServicesByStateUnitType("Accepted", companyId, unitType); dashboardInProgressServiceRequestsGateway.LoadServicesByStateUnitType("Rejected", companyId, unitType); dashboardInProgressServiceRequestsGateway.LoadServicesByStateUnitType("In Progress", companyId, unitType); dashboardInProgressServiceRequestsGateway.LoadServicesByStateUnitType("Completed", companyId, unitType); dashboardInProgressServiceRequestsGateway.ClearBeforeFill = true; }