Example #1
0
 public static baseDS.sysAutoKeyPendingRow UpdateAutoKeyPending(string key, string value, DateTime timestamp)
 {
     baseDS.sysAutoKeyPendingDataTable tbl = sysAutoKeyPendingTA.GetByKeyValue(key, value);
     baseDS.sysAutoKeyPendingRow       row;
     if (tbl.Count > 0)
     {
         row = tbl[0]; row.timeStamp = timestamp;
     }
     else
     {
         row     = tbl.NewsysAutoKeyPendingRow();
         row.key = key; row.value = value; row.timeStamp = timestamp;
         tbl.AddsysAutoKeyPendingRow(row);
     }
     sysAutoKeyPendingTA.Update(row);
     row.AcceptChanges();
     return(row);
 }
Example #2
0
 public static void LoadData(baseDS.sysAutoKeyPendingDataTable tbl, string key)
 {
     sysAutoKeyPendingTA.ClearBeforeFill = false;
     sysAutoKeyPendingTA.FillByKey(tbl, key);
 }
Example #3
0
 public static void UpdateData(baseDS.sysAutoKeyPendingDataTable data)
 {
     sysAutoKeyPendingTA.Update(data);
     data.AcceptChanges();
 }