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); }
void BindInfo() { try { var list = StatisticInfoMgr.GetAll(); datagrid1.DataSource = list; datagrid1.DataBind(); } catch (Exception ex) { LogHelper.Insert(ex); } }
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); } }