示例#1
0
 internal static void InsertLog(DateTime dt, string rec, string tbl, string usr, string act, string sysuser, string sys)
 {
     try
     {
         dda = new tblLivelogTableAdapter();
         dda.Insert(dt, rec, tbl, usr, act, sysuser, sys);
     }
     catch { }
 }
示例#2
0
 internal int Delete(LivelogInfo r)
 {
     try
     {
         da = new tblLivelogTableAdapter();
         n  = da.Delete(r.LogID);
     }
     catch (Exception ex)
     {
         Interactive.LInfoError(ex.Message, "Insert Record");
     }
     return(n);
 }
示例#3
0
 internal int Update(LivelogInfo r)
 {
     try
     {
         da = new tblLivelogTableAdapter();
         n  = da.Update(r.LogDate, r.RecordUID, r.TableName, r.UserID, r.Action, r.SystemUser, r.Computer, r.LogID);
     }
     catch (Exception ex)
     {
         Interactive.LInfoError(ex.Message, "Insert Record");
     }
     return(n);
 }
示例#4
0
 internal DsSecurity.tblLivelogDataTable ViewAll()
 {
     try
     {
         da = new tblLivelogTableAdapter();
         dt = new DsSecurity.tblLivelogDataTable();
         da.Fill(dt);
     }
     catch (Exception ex)
     {
         Interactive.LInfoError(ex.Message, "View Record");
     }
     return(dt);
 }