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(); } }
public virtual bool HideContactType() { return(Container.IsPersistent(this)); }
/// <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)); }