Пример #1
0
 protected override void OnLoad(EventArgs e)
 {
     dlstOrderItems.DataSource = purchaseOrder.PurchaseOrderItems;
     dlstOrderItems.DataBind();
     if (purchaseOrder.PurchaseOrderGifts.Count <= 0)
     {
         giftsList.Visible = false;
     }
     else
     {
         grdOrderGift.DataSource = purchaseOrder.PurchaseOrderGifts;
         grdOrderGift.DataBind();
     }
     lblGoodsAmount.Money = purchaseOrder.GetProductAmount();
     lblWeight.Text       = purchaseOrder.Weight.ToString(CultureInfo.InvariantCulture);
     purchaseOrderItemUpdateHyperLink.PurchaseOrderId    = purchaseOrder.PurchaseOrderId;
     purchaseOrderItemUpdateHyperLink.PurchaseStatusCode = purchaseOrder.PurchaseStatus;
     purchaseOrderItemUpdateHyperLink.DistorUserId       = purchaseOrder.DistributorId;
     purchaseOrderItemUpdateHyperLink.DataBind();
 }