Exemplo n.º 1
0
 public virtual bool HideLoginID()
 {
     if (Container.IsPersistent(this))
     {
         Employee userAsEmployee = EmployeeRepository.CurrentUserAsEmployee();
         return(userAsEmployee != null ? userAsEmployee.LoginID != LoginID : true);
     }
     return(false);
 }
 public void Recalculate()
 {
     UnitPrice         = SpecialOfferProduct.Product.ListPrice;
     UnitPriceDiscount = (SpecialOfferProduct.SpecialOffer.DiscountPct * UnitPrice);
     LineTotal         = (UnitPrice - UnitPriceDiscount) * OrderQty;
     if (Container.IsPersistent(this))
     {
         SalesOrderHeader.Recalculate();
     }
 }
Exemplo n.º 3
0
 public virtual bool HideContactType()
 {
     return(Container.IsPersistent(this));
 }
Exemplo n.º 4
0
 /// <summary>
 ///     Determines if the specified object is persistent; that is is stored permanently outside of the virtual machine.
 /// </summary>
 protected static bool IsPersistent(object obj)
 {
     return(Container.IsPersistent(obj));
 }