Beispiel #1
0
 public void Add(MenuEventLog menuEvent)
 {
     MenuEventLogDal dal = new MenuEventLogDal();
     dal.Add(menuEvent);
 }
Beispiel #2
0
 /****** 获取菜单点击的信息 **************/
 private MenuEventLog GetMenuEventLogModel(MessageType msgType)
 {
     MenuEventLog menuLog = new MenuEventLog();
     var root = doc.DocumentElement;
     menuLog.FromUserName = root.SelectSingleNode("FromUserName").InnerText;
     menuLog.clickTime = FormatTime(root.SelectSingleNode("CreateTime").InnerText);
     string menuKey = root.SelectSingleNode("EventKey").InnerText;
     if (msgType.Equals(MessageType.EventView))
     {
         int index = menuKey.IndexOf("=");
         int endIndex = menuKey.IndexOf("&");
         if (endIndex > index)
             menuKey = menuKey.Substring(index + 1, endIndex - index - 1);
     }
     menuLog.menuId = menuKey;
     return menuLog;
 }