Ejemplo n.º 1
0
        internal static string GetActionName(IDictionary <string, string> dic)
        {
            string tablename = GetTableCode(dic);

            if (!DicTableAction.ContainsKey(tablename))
            {
                OutLog(tablename + "无action描述");
                return(tablename);
            }
            return(DicTableAction[tablename]);
        }
Ejemplo n.º 2
0
 internal static void GetDicTableAction()
 {
     try
     {
         string[] strs = File.ReadAllLines("ActionName.txt");
         for (int i = 0; i < strs.Length; i++)
         {
             string[] strcontent = strs[i].Split(',');
             if (!DicTableAction.ContainsKey(strcontent[0]))
             {
                 DicTableAction.Add(strcontent[0], strcontent[1]);
             }
         }
     }
     catch
     {
         OutLog("action名配置文件出错");
     }
 }