Beispiel #1
0
 // perform post intialization
 protected override void OnInitialized()
 {
     base.OnInitialized();
     SalesPersonIdProperty.SetCascadingProperty(
         Enumerations.SalesPerson.Attributes.TerritoryId, TerritoryIdProperty);
     // add custom intialization code here
 }
        // perform post intialization
        protected override void OnInitialized()
        {
            base.OnInitialized();
            StatusProperty.DisplayFormat = Header.FieldId + " - " + Header.FieldText;
            TerritoryIdProperty.SetCascadingProperty(Enumerations.SalesTerritory.Attributes.Group, GlobalRegionProperty);
            SalesPersonIdProperty.SetCascadingProperty(Enumerations.SalesPerson.Attributes.TerritoryId, TerritoryIdProperty);

            if (Thread.CurrentPrincipal.IsStoreContact() || Thread.CurrentPrincipal.IsIndividualCustomer())
            {
                CustomerStoreOperatorProperty.AccessLevel = AccessLevel.None;
                CustomerNameOperatorProperty.AccessLevel  = AccessLevel.None;
            }
        }
Beispiel #3
0
        // perform post intialization
        protected override void OnInitialized()
        {
            base.OnInitialized();
            StatusProperty.DisplayFormat = $"{Header.FieldId} - {Header.FieldText}";
            TerritoryIdProperty.SetCascadingProperty(Enumerations.SalesTerritory.Attributes.Group, GlobalRegionProperty);
            SalesPersonIdProperty.SetCascadingProperty(Enumerations.SalesPerson.Attributes.TerritoryId, TerritoryIdProperty);
            SalesPersonIdProperty.NullsMatchAnyCascading = true;
            SalesPersonIdProperty.DisplayListSeparator   = "; ";

            if (CurrentPrincipal.IsStoreContact() || CurrentPrincipal.IsIndividualCustomer())
            {
                CustomerStoreOperatorProperty.AccessLevel = AccessLevel.None;
                CustomerNameOperatorProperty.AccessLevel  = AccessLevel.None;
            }
        }