Exemple #1
0
        public SaleDetailViewModel()
        {
            _Salesobj    = new skSales();
            _Purchaseobj = new skPurchase();
            Data         = new DataFunctions();

            Salesobj = Data.GetSalesDetails(StaticDataReposityory.SelectedSaleID);
            if (Salesobj.AddressId != null)
            {
                Addressobj = Data.GetAddressObject(Convert.ToInt32(Salesobj.AddressId));
                // Personobj = Data.GetPersonObject(Convert.ToInt32(Addressobj.PersonID));
            }
        }
 public PurchaseDetailsViewModel()
 {
     if (DesignerProperties.GetIsInDesignMode(new System.Windows.DependencyObject()))
     {
         return;
     }
     Data         = new DataFunctions();
     _PurchaseObj = Data.GetPurchaseDetails(StaticDataReposityory.SelectedSaleID);
     if (_PurchaseObj.VendorId != null)
     {
         _VendorObj  = Data.GetVendorDetails(Convert.ToInt32(_PurchaseObj.VendorId));
         _Addressobj = Data.GetAddressObject(Convert.ToInt32(_VendorObj.AddresseID));
     }
 }