Exemplo n.º 1
0
 static void AddOperateLog(object obj)
 {
     try
     {
         OperateLog model = obj as OperateLog;
         if (model != null)
         {
             IOperateLog factory = OperateLogFactory.GetFactory();
             factory.Add(model);
         }
     }
     catch (Exception ex)
     {
         ExceptionsServices.AddExceptions(ex, "添加操作日志出错");
     }
 }
Exemplo n.º 2
0
        public static Paging <OperateLog> QueryPage(OperateLogCondition condition, int pagesize, int pageindex, out int total)
        {
            IOperateLog factory = OperateLogFactory.GetFactory();

            return(factory.QueryPage(condition, pagesize, pageindex, out total));
        }