예제 #1
0
 public void AddRealFunction(SYS_FUNCTION f)
 {
     if (Functions == null)
     {
         Functions = new List <SYS_FUNCTION>();
     }
     Functions.Add(f);
 }
예제 #2
0
 public void AddFunction(SYS_FUNCTION f)
 {
     if (f.SUB_MODULE == null || f.SUB_MODULE == "")
     {
         AddRealFunction(f);
     }
     else
     {
         if (SubModule == null)
         {
             SubModule = new List <SYS_MODULE>();
         }
         AddSubModule(f);
     }
 }
예제 #3
0
        public void AddSubModule(SYS_FUNCTION s)
        {
            SYS_MODULE sm = null;

            try
            {
                sm = (from submodule in SubModule
                      where submodule.MODULE_NAME == s.SUB_MODULE
                      select submodule).First();
            }
            catch (Exception ex)
            {
                log.Warn(ex.Message + ":" + ex.StackTrace);
            }
            if (sm == null)
            {
                sm             = new SYS_MODULE();
                sm.MODULE_NAME = s.SUB_MODULE;
                SubModule.Add(sm);
            }
            sm.AddRealFunction(s);
        }