예제 #1
0
파일: CWLRptDir.cs 프로젝트: tomyqg/SemiGC
 public void LoadRptFromNode(XmlElement Node)
 {
     try
     {
         key  = System.Guid.NewGuid().ToString();
         desc = CABCXML.GetValFromNode(Node, "desc", "报表系统");
         foreach (XmlElement item in Node.ChildNodes)
         {
             string skey = item.Name;
             if (skey.ToLower().Substring(0, 3) == "dir")
             {
                 CWLRptDir ndir = new CWLRptDir();
                 ndir.LoadRptFromNode(item);
                 ndir.key = System.Guid.NewGuid().ToString();
                 LsDir.Add(ndir);
             }
             if (skey.ToLower().Substring(0, 3) == "rpt")
             {
                 CWLRpt nrpt = new CWLRpt();
                 nrpt.LoadFromNode(item);
                 nrpt.key  = System.Guid.NewGuid().ToString();
                 nrpt.PDir = this;
                 LsRpt.Add(nrpt);
             }
         }
     }
     catch (Exception e)
     {
     }
 }
예제 #2
0
 public void LoadFromNode(XmlElement Node)
 {
     try
     {
         desc       = CABCXML.GetValFromNode(Node, "desc", "");
         RptPath    = CABCXML.GetValFromNode(Node, "RptPath", "");
         RptType    = CABCXML.GetValFromNode(Node, "RptType", "");
         AutoType   = CABCXML.GetValFromNode(Node, "AutoType", "");
         StartTime  = CABCXML.GetValFromNode(Node, "StartTime", new DateTime(2001, 1, 1, 3, 0, 0));
         iRows      = CABCXML.GetValFromNode(Node, "iRows", "");
         iCols      = CABCXML.GetValFromNode(Node, "iCols", "");
         CreateTime = CABCXML.GetValFromNode(Node, "CreateTime", DateTime.Now);
         ModifyTime = CABCXML.GetValFromNode(Node, "ModifyTime", DateTime.Now);
         FilePath   = CABCXML.GetValFromNode(Node, "FilePath", "");
         foreach (XmlElement item in Node.ChildNodes)
         {
             CWLRptCol ncol = new CWLRptCol();
             ncol.LoadFromNode(item);
             LsCol.Add(ncol);
         }
     }
     catch (Exception e)
     {
     }
 }
예제 #3
0
 public void LoadFromNode(XmlElement Node)
 {
     try
     {
         PathType = CABCXML.GetValFromNode(Node, "PathType", "0");
         Path     = CABCXML.GetValFromNode(Node, "Path", "");
         LogPath  = CABCXML.GetValFromNode(Node, "LogPath", "");
     }
     catch (Exception e)
     {
     }
 }
예제 #4
0
 public void LoadFromNode(XmlElement Node)
 {
     try
     {
         LsDB = new List <CDBParmeter>();
         foreach (XmlElement item in Node.ChildNodes)
         {
             CDBParmeter ndb = new CDBParmeter();
             ndb.Db_server = CABCXML.GetValFromNode(item, "Db_server", "");
             ndb.Db_uid    = CABCXML.GetValFromNode(item, "Db_uid", "");
             ndb.Db_pwd    = CABCXML.GetValFromNode(item, "Db_pwd", "");
             ndb.Db_name   = CABCXML.GetValFromNode(item, "Db_name", "");
             LsDB.Add(ndb);
         }
     }
     catch (Exception e)
     {
     }
 }
예제 #5
0
        public CRptPath nRptPath = new CRptPath(); //报表存放的路径

        public void LoadFromNode(XmlElement Node)
        {
            try
            {
                AutoType  = CABCXML.GetValFromNode(Node, "AutoType", "N");
                SPassWord = CABCXML.GetValFromNode(Node, "SPassWord", "abcd");
                XmlElement Mod = (XmlElement)(Node.SelectSingleNode("Mod"));
                if (Mod != null)
                {
                    nModPath.LoadFromNode(Mod);
                }

                Mod = (XmlElement)(Node.SelectSingleNode("Rpt"));
                if (Mod != null)
                {
                    nRptPath.LoadFromNode(Mod);
                }
            }
            catch (Exception e)
            {
            }
        }
예제 #6
0
 public void LoadFromNode(XmlElement Node)
 {
     try
     {
         desc       = CABCXML.GetValFromNode(Node, "desc", "");
         ColType    = CABCXML.GetValFromNode(Node, "ColType", "");
         iRow       = CABCXML.GetValFromNode(Node, "iRow", 0);
         iCol       = CABCXML.GetValFromNode(Node, "iCol", 0);
         iRows      = CABCXML.GetValFromNode(Node, "iRows", 1);
         iCols      = CABCXML.GetValFromNode(Node, "iCols", 1);
         iRowInt    = CABCXML.GetValFromNode(Node, "iRowInt", 1);
         iColInt    = CABCXML.GetValFromNode(Node, "iColInt", 1);
         iDire      = CABCXML.GetValFromNode(Node, "iDire", "N");
         sLocation  = CABCXML.GetValFromNode(Node, "sLocation", "");
         sFormat    = CABCXML.GetValFromNode(Node, "sFormat", "");
         sSheetName = CABCXML.GetValFromNode(Node, "sSheetName", "");
         DataSource = CABCXML.GetValFromNode(Node, "DataSource", "");
         sSQL       = CABCXML.GetValFromNode(Node, "sSQL", "");
     }
     catch (Exception e)
     {
     }
 }