コード例 #1
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;
 }
コード例 #2
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);
 }