Ejemplo n.º 1
0
        public static CommonEntity GetEventHistoryList(CommonEntity commonEntity)
        {
            //commonEntity.LogMessages.MsgType = MessageType.INFO;
            //commonEntity.LogMessages.Content = _nameSpaceClass + "GetEventHistoryList";
            //LoggerHelper.LogWriter(commonEntity.LogMessages);

            try
            {
                return CommonDA.GetEventHistoryList(commonEntity);
            }
            catch (Exception ex)
            {
                //commonEntity.LogMessages.MsgType = MessageType.ERROR;
                //commonEntity.LogMessages.Content = _nameSpaceClass + "GetEventHistoryList  Error: " + ex.Message;
                //LoggerHelper.LogWriter(commonEntity.LogMessages);
                throw ex;
            }
        }
Ejemplo n.º 2
0
        public static CommonEntity GetEventHistoryList(CommonEntity commonEntity)
        {
            //DataCommand cmd = DataCommandManager.GetDataCommand("GetEventHistoryList");

            //CommonDBEntity dbParm = (commonEntity.CommonDBEntity.Count > 0) ? commonEntity.CommonDBEntity[0] : new CommonDBEntity();
            //cmd.SetParameterValue("@USERID", dbParm.UserID);
            //cmd.SetParameterValue("@USERNAME", dbParm.UserName);
            //cmd.SetParameterValue("@IPADDRESS", dbParm.IpAddress);
            //cmd.SetParameterValue("@EVENTTYPE", dbParm.Event_Type);
            //cmd.SetParameterValue("@EVENTID", dbParm.Event_ID);
            //cmd.SetParameterValue("@EVENTCONTENT", dbParm.Event_Content);
            //cmd.SetParameterValue("@EVENTRESULT", dbParm.Event_Result);
            //cmd.SetParameterValue("@StartDTime", dbParm.StartDTime);
            //cmd.SetParameterValue("@EndDTime", dbParm.EndDTime);

            //cmd.SetParameterValue("@PageCurrent", commonEntity.PageCurrent);
            //cmd.SetParameterValue("@PageSize", commonEntity.PageSize);
            //cmd.SetParameterValue("@SortField", commonEntity.SortField);
            //cmd.SetParameterValue("@SortType", commonEntity.SortType);
            //commonEntity.QueryResult = cmd.ExecuteDataSet();
            //commonEntity.TotalCount = (int)cmd.GetParameterValue("@TotalCount");
            return commonEntity;
        }