Пример #1
0
 private void BindItems()
 {
     IStock.BLL.DeliveryOrderDetails details = new IStock.BLL.DeliveryOrderDetails();
     details.GetDeliveryOrderDetails(CurrentDeliveryOrder.DeliveryOrderID);
     uiGridViewItems.DataSource = details.DefaultView;
     uiGridViewItems.DataBind();
     IStock.BLL.ClientReturns cr = new IStock.BLL.ClientReturns();
     cr.GetClientReturnByDeliveryOrderID(CurrentDeliveryOrder.DeliveryOrderID);
     if (cr.RowCount > 0)
     {
         uiTextBoxTotal.Text = (CurrentDeliveryOrder.GetDeliveryOrderTotals(CurrentDeliveryOrder.DeliveryOrderID) - cr.GetClientReturnTotals(cr.ClientReturnID)).ToString();
         uiLabelClientReturn.Text = cr.ReturnNo;
         uiTextBoxTotalReturn.Text = cr.GetClientReturnTotals(cr.ClientReturnID).ToString();
     }
     else
         uiTextBoxTotal.Text = CurrentDeliveryOrder.GetDeliveryOrderTotals(CurrentDeliveryOrder.DeliveryOrderID).ToString();
 }