示例#1
0
 public void DeleteExportJobAsync(Proxy.IExportJob exportJob)
 {
     if (ServiceProxy != null)
     {
         Service.ExportJob convertedExportJob = ClientObjectConverter.ConvertClientExportJob(exportJob);
         ServiceProxy.DeleteExportJobAsync(convertedExportJob, exportJob.Id);
     }
 }
示例#2
0
        internal static ObservableCollection <Service.ExportJob> ConvertExportJobsCollection(IDictionary <Guid, Proxy.IExportJob> exportJobs)
        {
            ObservableCollection <Service.ExportJob> result = new ObservableCollection <Service.ExportJob>();

            foreach (Proxy.IExportJob exportJob in exportJobs.Values)
            {
                Service.ExportJob convertedExportJob = ConvertClientExportJob(exportJob);
                result.Add(convertedExportJob);
            }
            return(result);
        }
 internal static Service.ExportJob ConvertClientExportJob(Proxy.IExportJob exportJob) 
 {
     Service.ExportJob result = new Service.ExportJob();
     result.Id = exportJob.Id;
     result.IsCurrent = exportJob.IsCurrent;
     result.Link = exportJob.Link;
     result.Status = ConvertClientExportStatus(exportJob.Status);
     result.Created = exportJob.Created;
     result.CreatedBy = new Service.GlymaUser();
     result.CreatedBy.Name = exportJob.CreatedBy.Name;
     result.CreatedBy.DisplayName = exportJob.CreatedBy.DisplayName;
     result.Type = ConvertClientExportType(exportJob.Type);
     result.MapType = ConvertClientMapType(exportJob.MapType);
     result.ExportProperties = exportJob.ExportProperties;
     result.PercentageComplete = exportJob.PercentageComplete;
     return result;
 }
示例#4
0
 internal static Service.ExportJob ConvertClientExportJob(Proxy.IExportJob exportJob)
 {
     Service.ExportJob result = new Service.ExportJob();
     result.Id                    = exportJob.Id;
     result.IsCurrent             = exportJob.IsCurrent;
     result.Link                  = exportJob.Link;
     result.Status                = ConvertClientExportStatus(exportJob.Status);
     result.Created               = exportJob.Created;
     result.CreatedBy             = new Service.GlymaUser();
     result.CreatedBy.Name        = exportJob.CreatedBy.Name;
     result.CreatedBy.DisplayName = exportJob.CreatedBy.DisplayName;
     result.Type                  = ConvertClientExportType(exportJob.Type);
     result.MapType               = ConvertClientMapType(exportJob.MapType);
     result.ExportProperties      = exportJob.ExportProperties;
     result.PercentageComplete    = exportJob.PercentageComplete;
     return(result);
 }
示例#5
0
 internal static IExportJob ConvertServerExportJob(Service.ExportJob exportJob)
 {
     Proxy.ExportJob result = new Proxy.ExportJob();
     result.Id        = exportJob.Id;
     result.IsCurrent = exportJob.IsCurrent;
     result.Link      = exportJob.Link;
     result.Status    = ConvertServerExportStatus(exportJob.Status);
     if (exportJob.Created.HasValue)
     {
         result.Created = exportJob.Created.Value;
     }
     result.CreatedBy          = new GlymaUser(exportJob.CreatedBy.Name);
     result.Type               = ConvertServerExportType(exportJob.Type);
     result.MapType            = ConvertServerMapType(exportJob.MapType);
     result.ExportProperties   = exportJob.ExportProperties;
     result.PercentageComplete = exportJob.PercentageComplete;
     return(result);
 }