Ejemplo n.º 1
0
 private void StoreSelectedItem(CommodityReceptionListItem selectedItem)
 {
     if (selectedItem == null) return;
     
     using (var c = NestedContainer)
     {  SelectedLineItems.Clear();
        SelectedLineItems.Add(selectedItem.DocumentId);
        Using<IStoreCommodityPopUp>(c).ShowCommodityToStore(SelectedLineItems);
        LineItem.Clear();
         LoadItems();
     }
 }
Ejemplo n.º 2
0
 private void ViewSelectedItem(CommodityReceptionListItem selectedItem)
 {
     const string uri = "/views/CommodityReception/DocumentDetails.xaml";
     Messenger.Default.Send<DocumentDetailMessage>(new DocumentDetailMessage { Id = selectedItem.DocumentId, DocumentType = DocumentType.ReceivedDelivery });
     NavigateCommand.Execute(uri);
 }
Ejemplo n.º 3
0
        private CommodityReceptionListItem Map(ReceivedDeliveryNote doc)
        {

            var item = new CommodityReceptionListItem
            {
                DocumentId = doc.Id,
                DocumentReference = doc.DocumentReference,
                DateIssued = doc.DocumentDateIssued,
                ClerkName = doc.DocumentIssuerUser.Username,
                Description = doc.Description,
                NetWeight =TruncateDecimal(doc.TotalNetWeight,1),
                NoOfContainers = doc.LineItems.Count,
                Status = doc.Status
            };
            return item;
        }