예제 #1
0
 public new int Delete(int ID)
 {
     int rows = dal.Delete(ID);
     BLL.CategoryExt bllCategory = new BLL.CategoryExt();
     rows += bllCategory.DeleteList(" ChannelItemID=" + ID);
     return rows;
 }
예제 #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.CategoryExt bllCategory = new BLL.CategoryExt();
             rows += bllCategory.DeleteList(" ChannelItemID=" + delID);
         }
     }
     return rows;
 }