// 如果是推广商品就添加推广信息 public void PromotionComfirm(M_OrderList orlist) { B_ArticlePromotion bap = new B_ArticlePromotion(); DataTable mcp; mcp = cartProBll.GetCartProOrderID(orlist.id); if (mcp != null && mcp.Rows.Count > 0) { if (orlist.Settle == 1) { for (int i = 0; i < mcp.Rows.Count; i++) { Response.Write(mcp.Rows[i]["id"].ToString()); M_ArticlePromotion map = bap.GetSelectBySqlParams("select * from ZL_ArticlePromotion where cartproid=" + mcp.Rows[i]["id"].ToString(), null); if (map.Id > 0) { map.IsEnable = true; bap.GetUpdate(map); } } } } }