示例#1
0
        public appDB.EventLogDataTable Load()
        {
            this.sqlDa.SelectCommand = sqlSelectAll;

            appDB.EventLogDataTable dt = new appDB.EventLogDataTable();
            Fill(dt);
            return(dt);
        }
示例#2
0
        internal EventLogBE(atriumManager pBEMng)
            : base(pBEMng, pBEMng.DB.EventLog)
        {
            myA          = pBEMng;
            myEventLogDT = (appDB.EventLogDataTable)myDT;

            if (!myA.AppMan.UseService && myODAL == null)
            {
                myODAL = myA.DALMngr.GetEventLog();
            }
        }
示例#3
0
        public appDB.EventLogDataTable Load(int EventId)
        {
            this.sqlDa.SelectCommand = sqlSelect;
            this.sqlSelect.Parameters.Clear();
            this.sqlSelect.CommandText = "[EventLogSelectByEventId]";
            this.sqlSelect.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
            this.sqlSelect.Parameters.Add(new System.Data.SqlClient.SqlParameter("@EventId", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));

            this.sqlSelect.Parameters["@EventId"].Value = EventId;

            appDB.EventLogDataTable dt = new appDB.EventLogDataTable();
            Fill(dt);
            return(dt);
        }