Esempio n. 1
0
        public returnGetEventLog GetEventLog(int ID)
        {
            OdbcConnection dbconn = new OdbcConnection(GetConnectionString("RBSR_AUFW"));

            RBSR_AUFW.DB.IEventLog.IEventLog obj = new RBSR_AUFW.DB.IEventLog.IEventLog(dbconn);
            return(obj.GetEventLog(ID));
        }
Esempio n. 2
0
        public int NewEventLog(DateTime TStamp, int IDuser, string IPaddr, string Action)
        {
            OdbcConnection dbconn = new OdbcConnection(GetConnectionString("RBSR_AUFW"));

            RBSR_AUFW.DB.IEventLog.IEventLog obj = new RBSR_AUFW.DB.IEventLog.IEventLog(dbconn);
            return(obj.NewEventLog(TStamp, IDuser, IPaddr, Action));
        }
Esempio n. 3
0
        public returnListEventLog[] ListEventLog(int?maxRowsToReturn)
        {
            OdbcConnection dbconn = new OdbcConnection(GetConnectionString("RBSR_AUFW"));

            RBSR_AUFW.DB.IEventLog.IEventLog obj = new RBSR_AUFW.DB.IEventLog.IEventLog(dbconn);
            return(obj.ListEventLog(maxRowsToReturn));
        }
Esempio n. 4
0
        public int SetEventLog(int ID, DateTime TStamp, int IDuser, string IPaddr, string Action, int?IDobject, string Detail)
        {
            OdbcConnection dbconn = new OdbcConnection(GetConnectionString("RBSR_AUFW"));

            RBSR_AUFW.DB.IEventLog.IEventLog obj = new RBSR_AUFW.DB.IEventLog.IEventLog(dbconn);
            return(obj.SetEventLog(ID, TStamp, IDuser, IPaddr, Action, IDobject, Detail));
        }
Esempio n. 5
0
        protected void AssignTemporaryDirectory(RBSR_AUFW.DB.IEventLog.IEventLog obj)
        {
            string wsAppData = HttpContext.Current.Server.MapPath(".") + "\\App_Data";

            if (!Directory.Exists(wsAppData))
            {
                Directory.CreateDirectory(wsAppData);
            }
            obj.TempDir = wsAppData;
        }