public JobDTO GetJob(long id) { return(IntegrationHttpClient.Get <JobDTO>(apiUri, endpoint + "?Id=" + id)); //var url = string.Format(baseAddress + "?Id=" + id); //IntegrationWebClient.Get(new Uri(url, UriKind.Absolute), // action, IntegrationWebClient.MessageFormat.Json, PMSClientConfig.CreateHeaderDic(userProvider.Token)); }
public JobIndexInPeriodDTO GetJobIndexInPeriod(long periodId, long abstractId, string columnNames) { var endpoint = makeEndPoint(periodId); endpoint += !string.IsNullOrWhiteSpace(columnNames) ? "&SelectedColumns=" + columnNames : ""; return(IntegrationHttpClient.Get <JobIndexInPeriodDTO>(apiUri, endpoint + "?abstractId=" + abstractId)); //var url = string.Format(baseAddress + makeApiAdress(periodId) + "?abstractId=" + abstractId); //url += !string.IsNullOrWhiteSpace(columnNames) ? "&SelectedColumns=" + columnNames : ""; //IntegrationWebClient.Get(new Uri(url, PMSClientConfig.UriKind), action, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token)); }
public JobDTO GetByTransferId(Guid transferId) { return(IntegrationHttpClient.Get <JobDTO>(apiUri, endpoint + "?TransferId=" + transferId)); }
public List <AbstractIndexInPeriodDTO> GetJobIndexGroups(long periodId) { var endpoint = makeEndPoint(periodId) + string.Format("?typeOf=" + "JobIndexGroup"); return(IntegrationHttpClient.Get <List <AbstractIndexInPeriodDTO> >(apiUri, endpoint)); }
public JobIndexDTO GetJobIndex(long id) { return(IntegrationHttpClient.Get <JobIndexDTO>(apiUri, endpoint + "?Id=" + id)); //var url = string.Format(apiAddress + "?Id=" + id); //IntegrationWebClient.Get(new Uri(url, PMSClientConfig.UriKind), action, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token)); }
public UnitIndexDTO GetUnitIndexByTransferId(Guid transferId) { return(IntegrationHttpClient.Get <UnitIndexDTO>(apiUri, endpoint + "?TransferId=" + transferId)); }
public PeriodDTO GetActivePeriod() { return(IntegrationHttpClient.Get <PeriodDTO>(apiUri, endpoint + "?Active=1")); // var url = string.Format(baseAddress + "?Active=1"); // IntegrationWebClient.Get(new Uri(url, UriKind.Absolute), action, PMSClientConfig.MsgFormat, PMSClientConfig.CreateHeaderDic(userProvider.Token)); }