Exemple #1
0
 public override StringBuilder CreateDeleteString()
 {
     if (Synch.Equals("UFOper"))
     {
         string sql = "DELETE FROM " + oracleTableName + " WHERE  " + oraclePriKey + "=" + Convert.ToString(_PRoutingId) + " ";
         return(new StringBuilder(sql));
     }
     else if (Synch.Equals("LinkOper"))
     {
         sqlOper = new LinkOper(oraLinkName, ufConnStr, ufTableName, ufPriKey, oracleTableName, oraclePriKey, l, lst);
         return(sqlOper.CreateDeleteString());
     }
     else
     {
         sqlOper = new OracleOper(oraConnStr, oracleTableName, oraclePriKey, l, lst);
         return(sqlOper.CreateDeleteString());
     }
 }
Exemple #2
0
 public override StringBuilder CreateDeleteString()
 {
     if (Synch.Equals("UFOper"))
     {
         string sql = "DELETE FROM " + oracleTableName + " WHERE  " + oracleTableName + ".MoDId in( select modid from mom_orderdetail with(nolock) where  mom_orderdetail.moid =" + Convert.ToString(_moid) + " and mom_orderdetail.modid =" + Convert.ToString(_modid) + ") ";
         return(new StringBuilder(sql));
     }
     else if (Synch.Equals("LinkOper"))
     {
         sqlOper = new LinkOper(oraLinkName, ufConnStr, ufTableName, ufPriKey, oracleTableName, oraclePriKey, l, lst);
         return(sqlOper.CreateDeleteString());
     }
     else
     {
         sqlOper = new OracleOper(oraConnStr, oracleTableName, oraclePriKey, l, lst);
         return(sqlOper.CreateDeleteString());
     }
 }
Exemple #3
0
 /// <summary>
 /// 修改
 /// </summary>
 /// <returns></returns>
 public override object Update()
 {
     if (Synch.Equals("UFOper"))
     {
         sqlOper = new UFOper(oraLinkName, ufConnStr, ufTableName, ufPriKey, oracleTableName, oraclePriKey, l, lst);
         if (bNoCase)
         {
             sqlOper.Delete();  //清除旧记录
         }
         return(this.Insert());
     }
     else if (Synch.Equals("LinkOper"))
     {
         sqlOper = new LinkOper(oraLinkName, ufConnStr, ufTableName, ufPriKey, oracleTableName, oraclePriKey, l, lst);
         return(sqlOper.Update());
     }
     else
     {
         sqlOper = new OracleOper(oraConnStr, oracleTableName, oraclePriKey, l, lst);
         return(sqlOper.Update());
     }
 }