コード例 #1
0
ファイル: InfoPathAnalytics.cs プロジェクト: Qdabra/QFS
        public static FormPropertyList AllFormProperties(ClientContext context, string libraryUrl, string xsnUrl)
        {
            FormPropertyList propList   = new FormPropertyList();
            XsnWrapper       xsnWrapper = new XsnWrapper(Utilities.DownloadXsn(context, libraryUrl, xsnUrl));

            propList.FormProperties = xsnWrapper.GetAllXsnProperties();
            xsnWrapper.Dispose();

            return(propList);
        }
コード例 #2
0
ファイル: InfoPathAnalytics.cs プロジェクト: Qdabra/QFS
        public static FormPropertyList AllFormPropertiesFromFormFileRequest(FormFileRequest formFileRequest)
        {
            FormPropertyList propList   = new FormPropertyList();
            XsnWrapper       xsnWrapper = new XsnWrapper(Utilities.SaveFormFileRequest(formFileRequest));

            propList.FormProperties = xsnWrapper.GetAllXsnProperties();
            xsnWrapper.Dispose();

            return(propList);
        }
コード例 #3
0
ファイル: InfoPathAnalytics.cs プロジェクト: Qdabra/QFS
        public static ManifestFileWithProperties ManifestWithPropertiesFromFormFileRequest(FormFileRequest formFileRequest)
        {
            FormPropertyList propList   = new FormPropertyList();
            XsnWrapper       xsnWrapper = new XsnWrapper(Utilities.SaveFormFileRequest(formFileRequest));

            propList.FormProperties = xsnWrapper.GetAllXsnProperties();
            xsnWrapper.Dispose();

            return(new ManifestFileWithProperties(propList, new FormFile(manifestPath, xsnWrapper.Manifest.Manifest.OuterXml)));
        }
コード例 #4
0
ファイル: InfoPathAnalytics.cs プロジェクト: Qdabra/QFS
        public static FormPropertyList FormName(ClientContext context, string libraryUrl, string xsnUrl)
        {
            ManifestWrapper manifest = new ManifestWrapper(FormFileContents(context, libraryUrl, xsnUrl, manifestPath).Contents);

            FormPropertyList properties = new FormPropertyList();

            properties.Add(manifest.GetInitialCaption());
            properties.Add(manifest.GetId());

            return(properties);
        }
コード例 #5
0
ファイル: InfoPathAnalytics.cs プロジェクト: Qdabra/QFS
 public static ManifestFileWithProperties ManifestWithProperties(ClientContext context, string libraryUrl, string xsnUrl)
 {
     using (XsnWrapper xsnWrapper = new XsnWrapper(Utilities.DownloadXsn(context, libraryUrl, xsnUrl)))
     {
         FormPropertyList propList = new FormPropertyList
         {
             FormProperties = xsnWrapper.GetAllXsnProperties()
         };
         return(new ManifestFileWithProperties(propList, new FormFile(manifestPath, xsnWrapper.Manifest.Manifest.OuterXml)));
     }
 }
コード例 #6
0
ファイル: InfoPathAnalytics.cs プロジェクト: Qdabra/QFS
        public static FormPropertyList FormSecuritySettings(ClientContext context, string libraryUrl, string xsnUrl)
        {
            ManifestWrapper manifest = new ManifestWrapper(FormFileContents(context, libraryUrl, xsnUrl, manifestPath).Contents);

            FormPropertyList propertyList = new FormPropertyList();

            propertyList.Add(manifest.GetInitialCaption());
            propertyList.Add(manifest.GetTrustSetting());
            propertyList.Add(manifest.GetTrustLevel());

            return(propertyList);
        }
コード例 #7
0
ファイル: InfoPathAnalytics.cs プロジェクト: Qdabra/QFS
        public static FormPropertyList FormCompatibility(ClientContext context, string libraryUrl, string xsnUrl)
        {
            ManifestWrapper manifest = new ManifestWrapper(FormFileContents(context, libraryUrl, xsnUrl, manifestPath).Contents);

            FormPropertyList properties = new FormPropertyList();

            properties.Add(manifest.GetInitialCaption());
            properties.Add(manifest.GetInfoPathVersion());
            properties.Add(manifest.BrowserCompatible());

            return(properties);
        }
コード例 #8
0
ファイル: DataContracts.cs プロジェクト: Qdabra/QFS
 public ManifestFileWithProperties(FormPropertyList formProperties, FormFile formFile)
 {
     this.FormProperties = formProperties;
     this.FormFile       = formFile;
 }