Ejemplo n.º 1
0
        public void Update(int HistoryID, int?IDtarget, DateTime?LogDate, string LogUser, string FieldName, string ChangedFrom, string ChangedTo, byte[] Dbtimestamp)
        {
            TargetHistory item = new TargetHistory(IDtarget);

            item.MarkOld();
            item.IsLoaded = true;

            item.HistoryID = HistoryID;

            item.IDtarget = IDtarget;

            item.LogDate = LogDate;

            item.LogUser = LogUser;

            item.FieldName = FieldName;

            item.ChangedFrom = ChangedFrom;

            item.ChangedTo = ChangedTo;

            item.Dbtimestamp = Dbtimestamp;

            item.Save(UserName);
        }
Ejemplo n.º 2
0
        public void Insert(int?IDtarget, DateTime?LogDate, string LogUser, string FieldName, string ChangedFrom, string ChangedTo, byte[] Dbtimestamp)
        {
            TargetHistory item = new TargetHistory();

            item.IDtarget = IDtarget;

            item.LogDate = LogDate;

            item.LogUser = LogUser;

            item.FieldName = FieldName;

            item.ChangedFrom = ChangedFrom;

            item.ChangedTo = ChangedTo;

            item.Dbtimestamp = Dbtimestamp;


            item.Save(UserName);
        }
Ejemplo n.º 3
0
 public bool Destroy(object HistoryID)
 {
     return(TargetHistory.Destroy(HistoryID) == 1);
 }
Ejemplo n.º 4
0
 public bool Delete(object HistoryID)
 {
     return(TargetHistory.Delete(HistoryID) == 1);
 }