Esempio n. 1
0
        private string GetTemplateText()
        {
            string result      = string.Empty;
            string virtualPath = this.GetResolvedTemplatePath();

            if (virtualPath.IsNotEmpty())
            {
                result = WebXmlDocumentCache.GetDocument(virtualPath);
            }

            return(result);
        }
Esempio n. 2
0
        protected string InitalJsonFor(string name)
        {
            var       doc  = WebXmlDocumentCache.GetDocument("~/App_Data/DraftingData.xml");
            ArrayList list = new ArrayList();

            if (string.IsNullOrEmpty(name) == false)
            {
                CategoryLinkAdapter.Instance.DoSearch(new string[] { "Root", name }, list, System.Xml.XmlReader.Create(new StringReader(doc)));
            }

            return(MCS.Web.Library.Script.JSONSerializerExecute.Serialize(list));
        }
Esempio n. 3
0
        public static XmlReaderSettings GetDraftingLinkXmlReaderSettings()
        {
            var readerSettings = CategoryLinkAdapter.Settings;

            if (readerSettings == null)
            {
                readerSettings = new System.Xml.XmlReaderSettings()
                {
                    IgnoreWhitespace = true,
                    IgnoreComments   = true,
                };

                var schemaDoc = WebXmlDocumentCache.GetDocument("~/App_Data/CategorySchema.xsd");

                var schema = XmlSchema.Read(new StringReader(schemaDoc), null);
                CategoryLinkAdapter.Settings = readerSettings;
            }

            return(readerSettings);
        }
Esempio n. 4
0
        private ArrayList GetResult(string[] paths)
        {
            ArrayList result = new ArrayList();

            var doc       = WebXmlDocumentCache.GetDocument("~/App_Data/DraftingData.xml");
            var schemaDoc = WebXmlDocumentCache.GetDocument("~/App_Data/CategorySchema.xsd");

            for (int i = 0; i < paths.Length; i++)
            {
                var       path  = paths[i];
                var       parts = path.Split('.', '>');
                ArrayList list  = new ArrayList();
                if (parts.Length > 0 && parts[0] == "Root")
                {
                    CategoryLinkAdapter.Instance.DoSearch(parts, list, XmlReader.Create(new StringReader(doc), Util.GetDraftingLinkXmlReaderSettings()));
                }

                result.Add(list);
            }

            return(result);
        }
Esempio n. 5
0
 protected void ctlUpload_LoadingDialogContent(object sender, LoadingDialogContentEventArgs e)
 {
     e.Content = WebXmlDocumentCache.GetDocument("~/inc/CommonMemberUploadTemplate.htm") + this.GetScript(this.ctlUpload.Tag);
 }
Esempio n. 6
0
 protected void ctlUpload_LoadingDialogContent(object sender, LoadingDialogContentEventArgs e)
 {
     e.Content = WebXmlDocumentCache.GetDocument("~/inc/AllMembersUploadTemplate.htm");
 }