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(); } }
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); }
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; }