Esempio n. 1
0
        public override void ApplyLocale(CLocalization aLocale)
        {
            XmlNode lData = aLocale.GetFormData("MainForm");

            _pHome.Title   = XmlTools.getXmlNodeByName("pHome", lData).InnerText;
            _pEdit.Title   = XmlTools.getXmlNodeByName("pEdit", lData).InnerText;
            _pExport.Title = XmlTools.getXmlNodeByName("pExport", lData).InnerText;
            _pView.Title   = XmlTools.getXmlNodeByName("pView", lData).InnerText;

            _iOpenRpt.Hint          = XmlTools.getXmlNodeByAttrVal("hint", "name", "open", lData).InnerText;
            _iSettings.Hint         = XmlTools.getXmlNodeByAttrVal("hint", "name", "settings", lData).InnerText;
            _iHelp.Hint             = XmlTools.getXmlNodeByAttrVal("hint", "name", "about", lData).InnerText;
            _iImportCollection.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "import", lData).InnerText;
            _iExportCollection.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "export", lData).InnerText;
            _iAddRpt.Hint           = XmlTools.getXmlNodeByAttrVal("hint", "name", "addRpt", lData).InnerText;
            _iEditRpt.Hint          = XmlTools.getXmlNodeByAttrVal("hint", "name", "editRpt", lData).InnerText;
            _iNewFolder.Hint        = XmlTools.getXmlNodeByAttrVal("hint", "name", "addCatalog", lData).InnerText;
            _iRemove.Hint           = XmlTools.getXmlNodeByAttrVal("hint", "name", "remove", lData).InnerText;
            _iAddColl.Hint          = XmlTools.getXmlNodeByAttrVal("hint", "name", "addColl", lData).InnerText;
            _iPrint.Hint            = XmlTools.getXmlNodeByAttrVal("hint", "name", "print", lData).InnerText;
            _iMail.Hint             = XmlTools.getXmlNodeByAttrVal("hint", "name", "mail", lData).InnerText;
            _iPDF.Hint       = XmlTools.getXmlNodeByAttrVal("hint", "name", "expPdf", lData).InnerText;
            _iWord.Hint      = XmlTools.getXmlNodeByAttrVal("hint", "name", "expWord", lData).InnerText;
            _iXLS.Hint       = XmlTools.getXmlNodeByAttrVal("hint", "name", "expExcel", lData).InnerText;
            _iHTML.Hint      = XmlTools.getXmlNodeByAttrVal("hint", "name", "expHtml", lData).InnerText;
            _iXML.Hint       = XmlTools.getXmlNodeByAttrVal("hint", "name", "expXml", lData).InnerText;
            _iRefresh.Hint   = XmlTools.getXmlNodeByAttrVal("hint", "name", "refresh", lData).InnerText;
            _iOffline.Hint   = XmlTools.getXmlNodeByAttrVal("hint", "name", "offline", lData).InnerText;
            _iGroups.Hint    = XmlTools.getXmlNodeByAttrVal("hint", "name", "groups", lData).InnerText;
            _iZoomIn.Hint    = XmlTools.getXmlNodeByAttrVal("hint", "name", "zoomIn", lData).InnerText;
            _iZoomOut.Hint   = XmlTools.getXmlNodeByAttrVal("hint", "name", "zoomOut", lData).InnerText;
            _iZoomWidth.Hint = XmlTools.getXmlNodeByAttrVal("hint", "name", "fitWidth", lData).InnerText;
            _iZoomWnd.Hint   = XmlTools.getXmlNodeByAttrVal("hint", "name", "fitPage", lData).InnerText;
            _iFirst.Hint     = XmlTools.getXmlNodeByAttrVal("hint", "name", "pFirst", lData).InnerText;
            _iPrev.Hint      = XmlTools.getXmlNodeByAttrVal("hint", "name", "pPrev", lData).InnerText;
            _iNext.Hint      = XmlTools.getXmlNodeByAttrVal("hint", "name", "pNext", lData).InnerText;
            _iLast.Hint      = XmlTools.getXmlNodeByAttrVal("hint", "name", "pLast", lData).InnerText;

            _pgCollections.PageTitle = RsViewEngine.Locale.GetTagText(RsLocalization.TAG_MANCOLLECTIONS);
            _pgSettings.PageTitle    = RsViewEngine.Locale.GetTagText(RsLocalization.TAG_SETTINGS);

            _aExcelDataOnly.Text  = aLocale.GetTagText("fileXlsDataOnly");
            _aExcelFormatted.Text = aLocale.GetTagText("fileXlsFormatted");
        }
Esempio n. 2
0
        public static void ConvertToNew(string aFile)
        {
            CSecurityData lNewDoc = CSecurityData.CreateNew();
            XmlDocument   lOldDoc = new XmlDocument();

            lOldDoc.Load(aFile);
            XmlNode lRootNode = XmlTools.getXmlNodeByName("ReportSmartSecurity", lOldDoc);

            foreach (XmlNode iNode in lRootNode)
            {
                CSecurityNode iSecNode = CSecurityData.AddSecNode(
                    lNewDoc,
                    XmlTools.GetAttrib(iNode, "datasource"),
                    iNode.Name
                    );
                iSecNode.UserName = XmlTools.GetAttrib(iNode, "userid");
                iSecNode.Password = XmlTools.GetAttrib(iNode, "passwd");
            }
            lNewDoc.Save(aFile);
        }
Esempio n. 3
0
 // "yes" value means true, otherwise value is false.
 public bool GetAsBool(string iAttribute)
 {
     return(XmlTools.GetAttrib(_DataNode, iAttribute).ToUpper() == XMLv_YES.ToUpper());
 }