コード例 #1
0
ファイル: StatisticThread.cs プロジェクト: cool8868/H5Nball
        public MessageCode JobGetTotal()
        {
            int  totalUser     = 0;
            int  totalManager  = 0;
            long totalPay      = 0;
            long pointRemain   = 0;
            long onlineMinutes = 0;

            NbUserMgr.GetTotal(ref totalUser, ref totalManager, ref totalPay, ref pointRemain, ref onlineMinutes);
            StatisticInfoMgr.Update(ShareUtil.ZoneId, totalUser, totalManager, totalPay, pointRemain, onlineMinutes,
                                    DateTime.Now);
            return(MessageCode.Success);
        }
コード例 #2
0
 void BindInfo()
 {
     try
     {
         var list = StatisticInfoMgr.GetAll();
         datagrid1.DataSource = list;
         datagrid1.DataBind();
     }
     catch (Exception ex)
     {
         LogHelper.Insert(ex);
     }
 }
コード例 #3
0
ファイル: StatisticThread.cs プロジェクト: cool8868/H5Nball
 public MessageCode JobCreateRecord()
 {
     try
     {
         StatisticDetailMgr.Create(ShareUtil.ZoneId, DateTime.Today);
         StatisticKpiMgr.Create(ShareUtil.ZoneId, DateTime.Today);
         StatisticOnlineMgr.Create(ShareUtil.ZoneId, DateTime.Today);
         StatisticInfoMgr.Create(ShareUtil.ZoneId);
         return(MessageCode.Success);
     }
     catch (Exception ex)
     {
         SystemlogMgr.Error("JobCreateRecord", ex);
         return(MessageCode.Exception);
     }
 }