コード例 #1
0
        private async void SetInvoice(ModelsShared.Models.penjualan selected)
        {
            var context = ResourcesBase.GetMainWindowViewModel().InvoiceCollections;
            var x       = await context.GetInvoiceForPenjualanInfo(selected.Id);

            if (x != null)
            {
                this.InvoiceStatusView               = new invoice();
                this.InvoiceStatusView.Number        = x.Number;
                this.InvoiceStatusView.CreateDate    = x.CreateDate;
                this.InvoiceStatusView.IsDelivery    = x.IsDelivery;
                this.InvoiceStatusView.InvoiceStatus = x.InvoiceStatus;
            }
        }
コード例 #2
0
        public async void SetManifest(ModelsShared.Models.penjualan p)
        {
            var result = await MainVM.ManifestOutgoingCollection.ManifestsByPenjualanId(p.Id);

            if (result != null)
            {
                ManifestSource.Clear();
                foreach (var item in result)
                {
                    var m = await MainVM.ManifestOutgoingCollection.GetItemById(item.Id);

                    this.ManifestSource.Add(m);
                }
                this.ManifestView.Refresh();
            }
        }