///<sumary> /// 删除 ///</sumary> /// <param name="founderpcb_frighte_01">对象</param> ///<returns>返回操作所影响的行数</returns> public int DeleteByRKEY(decimal rkey) { #region 调用SQL存储过程进行删除 string sql = "delete from dbo.FOUNDERPCB_FRIGHTE_01 where RKEY='" + rkey + "'"; int result = 0; try { dbHelper.ExecuteCommand(sql); result = 0; log.Info("FID=" + this.factoryID.ToString() + ";userAD=" + this.userAD + ";FOUNDERPCB_FRIGHTE_01,delete successful"); } catch (Exception e) { result = 2; log.Info("FID=" + this.factoryID.ToString() + ";userAD=" + this.userAD + ";" + e.Message, e); throw e; } #endregion return(result); }