Beispiel #1
0
 public static DataTable GetAddDataFromHXC(string tableName, ProtocolValue pv, string dbName, string lastTime, string time)
 {
     if (pv != null && pv.PreTableName.Length > 0)
     {
         return GetAddDataFromHXC(
             string.Format("{0} inner join {1} on {0}.{2}={1}.{3}", tableName, pv.PreTableName, pv.Key, pv.PreKey),
             tableName, pv.PreTableName, dbName, lastTime, time);
     }
     return GetAddDataFromHXC(tableName, dbName, lastTime, time);           
 }
Beispiel #2
0
 public static DataTable GetAddData(string tableName, ProtocolValue pv, string dbName, string lastTime, string time)
 {
     return null;
     //if (pv == null) return null;
     //if (!String.IsNullOrEmpty(pv.PreTableName))
     //{
     //    return GetAddData(
     //        string.Format("{0} inner join {1} on {0}.{2}={1}.{3}", tableName, pv.PreTableName, pv.Key, pv.PreKey),
     //        tableName, pv.PreTableName, dbName, lastTime, time, pv.Operate);
     //}
     //return GetAddData(tableName, dbName, lastTime, time, pv.Operate);
 }
Beispiel #3
0
 public static DataTable GetDeleteData(string tableName, ProtocolValue pv, string dbName, string lastTime, string time)
 {
     if (pv == null) return null;
     if (pv.PreTableName.Length > 0)
     {
         return GetDeleteData(
             string.Format("{0} inner join {1} on {0}.{2}={1}.{3}", tableName, pv.PreTableName, pv.Key, pv.PreKey),
             tableName, pv.PreTableName, dbName, lastTime, time, pv.Operate);
     }
     return GetDeleteData(tableName, tableName,tableName, dbName, lastTime, time, pv.Operate);
 }