Esempio n. 1
0
 public new int Delete(int ID)
 {
     int rows = dal.Delete(ID);
     BLL.ChannelItemExt bllChannelItem = new BLL.ChannelItemExt();
     rows += bllChannelItem.DeleteList(" ChannelID=" + ID);
     return rows;
 }
Esempio n. 2
0
 public new int DeleteList(string strWhere)
 {
     int rows = dal.DeleteList(strWhere);
     DataSet dsDel = dal.GetList(strWhere);   //读取符合条件的数据
     if (dsDel != null && dsDel.Tables[0] != null && dsDel.Tables[0].Rows.Count != 0)
     {
         for (int i = 0; i < dsDel.Tables[0].Rows.Count; i++)
         {
             int delID = Convert.ToInt32(dsDel.Tables[0].Rows[i][0]);
             BLL.ChannelItemExt bllChannelItem = new BLL.ChannelItemExt();
             rows += bllChannelItem.DeleteList(" ChannelID=" + delID);
         }
     }
     return rows;
 }