Beispiel #1
0
        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);
        }
Beispiel #2
0
        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)));
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
 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)));
     }
 }
Beispiel #5
0
        public static FormInformation GenerateFormInformation(XsnWrapper xsnWrapper, double?formSize = null)
        {
            FormInformation formInfo = new FormInformation();

            formInfo.ViewInfos              = GetViewInfos(xsnWrapper);
            formInfo.DataConnections        = xsnWrapper.Manifest.GetAllDataConnectionInfo();
            formInfo.FormProperties         = xsnWrapper.GetAllXsnProperties(formSize);
            formInfo.PromotedProperties     = xsnWrapper.Manifest.GetAllPromotedProperties();
            formInfo.DllInfos               = GetDllInfos(xsnWrapper);
            formInfo.DetailingResults       = GetDetailingResults(xsnWrapper);
            formInfo.MigrationAnalysisInfos = GetFormAnalysisInfos(xsnWrapper);
            formInfo.MigrationAnalysisInfos = xsnWrapper.AddRepeatingStructureWithSiblingsInfo(formInfo.MigrationAnalysisInfos);
            //formInfo.MigrationAnalysisInfos = xsnWrapper.Manifest.GetDataConnectionInfo(formInfo.MigrationAnalysisInfos);
            formInfo.QRulesInfos = xsnWrapper.Manifest.GetAllQRules();

            //TODO: Allow turning off getting form Level info
            AddFormLevelInformation(xsnWrapper, formInfo);

            return(formInfo);
        }