示例#1
0
 public void Reload()
 {
     foreach (DataListItem item in uxList.Items)
     {
         if (item.FindControl("uxProductItem") != null)
         {
             Components_PromotionProductItem productItem = ( Components_PromotionProductItem )item.FindControl("uxProductItem");
             productItem.Reload();
         }
     }
 }
示例#2
0
    private void UpdateProductItem(object sender)
    {
        Components_PromotionProductItem selectedItem = ( Components_PromotionProductItem )sender;

        uxSelectedProductHidden.Value = selectedItem.ProductID + ":" + selectedItem.ProductOptionIDs;

        foreach (DataListItem item in uxList.Items)
        {
            if (item.FindControl("uxProductItem") != null)
            {
                Components_PromotionProductItem productItem = ( Components_PromotionProductItem )item.FindControl("uxProductItem");

                if (!selectedItem.ProductID.Equals(productItem.ProductID))
                {
                    productItem.CheckedRadio = false;
                }
            }
        }
    }