Пример #1
0
 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));
 }
Пример #2
0
        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));
        }
Пример #3
0
 public JobDTO GetByTransferId(Guid transferId)
 {
     return(IntegrationHttpClient.Get <JobDTO>(apiUri, endpoint + "?TransferId=" + transferId));
 }
Пример #4
0
        public List <AbstractIndexInPeriodDTO> GetJobIndexGroups(long periodId)
        {
            var endpoint = makeEndPoint(periodId) + string.Format("?typeOf=" + "JobIndexGroup");

            return(IntegrationHttpClient.Get <List <AbstractIndexInPeriodDTO> >(apiUri, endpoint));
        }
Пример #5
0
 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));
 }
Пример #6
0
 public UnitIndexDTO GetUnitIndexByTransferId(Guid transferId)
 {
     return(IntegrationHttpClient.Get <UnitIndexDTO>(apiUri, endpoint + "?TransferId=" + transferId));
 }
Пример #7
0
 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));
 }