public void SaveCurrentContextValues(string companyName, object parentLongOperationKey) { this._parentFinished = false; this._parentLongOperationKey = parentLongOperationKey; this.CompanyName = companyName; this.UserNameForLoginScope = PXDatabase.Companies.Length > 0 ? PXAccess.GetUserName() + "@" + this.CompanyName : PXAccess.GetUserName(); this.BranchID = PXContext.GetBranchID(); this.BusinessDate = PXContext.GetBusinessDate(); this.ScreenID = PXContext.GetScreenID(); }