示例#1
0
        internal static Proxy.ExportType ConvertServerExportType(Service.ExportType exportType)
        {
            Proxy.ExportType type = Proxy.ExportType.Unknown;
            switch (exportType)
            {
            case Service.ExportType.Compendium:
                type = Proxy.ExportType.Compendium;
                break;

            case Service.ExportType.GlymaXml:
                type = Proxy.ExportType.GlymaXml;
                break;

            case Service.ExportType.PDF:
                type = Proxy.ExportType.PDF;
                break;

            case Service.ExportType.Word:
                type = Proxy.ExportType.Word;
                break;

            default:
                type = Proxy.ExportType.Unknown;
                break;
            }
            return(type);
        }
示例#2
0
        internal static Service.ExportType ConvertClientExportType(Proxy.ExportType exportType)
        {
            Service.ExportType type = Service.ExportType.GlymaXml;
            switch (exportType)
            {
            case Proxy.ExportType.Compendium:
                type = Service.ExportType.Compendium;
                break;

            case Proxy.ExportType.GlymaXml:
                type = Service.ExportType.GlymaXml;
                break;

            case Proxy.ExportType.PDF:
                type = Service.ExportType.PDF;
                break;

            case Proxy.ExportType.Word:
                type = Service.ExportType.Word;
                break;
            }
            return(type);
        }
示例#3
0
 public void CreateExportJobAsync(Guid domainId, Guid rootMapId, Dictionary <string, string> exportProperties, Proxy.MapType mapType, Proxy.ExportType exportType)
 {
     if (ServiceProxy != null)
     {
         Service.ExportType serviceExportType = ClientObjectConverter.ConvertClientExportType(exportType);
         Service.MapType    serviceMapType    = ClientObjectConverter.ConvertClientMapType(mapType);
         ServiceProxy.CreateExportJobAsync(domainId, rootMapId, exportProperties, serviceMapType, serviceExportType, rootMapId);
     }
 }