예제 #1
0
        //
        public string ClassAdd(HttpRequest Request, HttpResponse Response)
        {
            string strGradeID = Request["gradeid"];

            strGradeID = DicCache.getInstance().getCode("DIC_GRADE", strGradeID);

            return(person.StuClass.ClassAdd(Request["txtXML"]));
        }
예제 #2
0
    /// <summary>
    /// 获得字典缓存的实例
    /// </summary>
    /// <returns>字典缓存的实例</returns>
    public static DicCache getInstance()
    {
      if (m_obj_DicCache==null)
      {
        m_obj_DicCache = new DicCache();
      }

      return m_obj_DicCache;
    }
예제 #3
0
        /// <summary>
        /// 获得字典缓存的实例
        /// </summary>
        /// <returns>字典缓存的实例</returns>
        public static DicCache getInstance()
        {
            if (m_obj_DicCache == null)
            {
                m_obj_DicCache = new DicCache();
            }

            return(m_obj_DicCache);
        }
예제 #4
0
 public DicCache()
 {
   try
   {
     if (m_obj_DicCache == null)
       init();
   }
   catch (Exception e)
   {
     m_obj_DicCache = null;
   }
 }
예제 #5
0
 public DicCache()
 {
     try
     {
         if (m_obj_DicCache == null)
         {
             init();
         }
     }
     catch (Exception e)
     {
         m_obj_DicCache = null;
     }
 }