Ejemplo n.º 1
0
        protected override void Initialize()
        {
            AccountNumberProperty          = new TextProperty(this, AccountNumber);
            AccountNumberProperty.Required = true;
            AccountNumberProperty.Size     = 10;
            AccountNumberProperty.Editable = false;
            CustomerIdProperty             = new IntegerKeyProperty(this, CustomerId);
            CustomerIdProperty.Required    = true;
            PersonIdProperty             = new IntegerKeyProperty(this, PersonId);
            PersonIdProperty.Editable    = false;
            PersonNameProperty           = new TextProperty(this, PersonName);
            PersonNameProperty.Editable  = false;
            StoreIdProperty              = new IntegerKeyProperty(this, StoreId);
            StoreIdProperty.Editable     = false;
            StoreNameProperty            = new TextProperty(this, StoreName);
            StoreNameProperty.Editable   = false;
            TerritoryIdProperty          = new EnumIntProperty(this, TerritoryId);
            TerritoryIdProperty.Size     = 10;
            TerritoryIdProperty.EnumType = "sales territory";
            TerritoryIdProperty.Editable = false;
            DataObject objLookup = new SalesCustomerLookupObject();

            AddChildObject(Lookup, objLookup);
            DataObject objBillingAddress = new AddressObjectCustomized();

            AddChildObject(BillingAddress, objBillingAddress);
            DataObject objShippingAddress = new AddressObjectCustomized();

            AddChildObject(ShippingAddress, objShippingAddress);
        }
 protected override void Initialize()
 {
     AccountNumberProperty = new TextProperty(this, AccountNumber);
     AccountNumberProperty.Required = true;
     AccountNumberProperty.Size = 10;
     AccountNumberProperty.Editable = false;
     CustomerIdProperty = new IntegerKeyProperty(this, CustomerId);
     CustomerIdProperty.Required = true;
     PersonIdProperty = new IntegerKeyProperty(this, PersonId);
     PersonIdProperty.Editable = false;
     PersonNameProperty = new TextProperty(this, PersonName);
     PersonNameProperty.Editable = false;
     StoreIdProperty = new IntegerKeyProperty(this, StoreId);
     StoreIdProperty.Editable = false;
     StoreNameProperty = new TextProperty(this, StoreName);
     StoreNameProperty.Editable = false;
     TerritoryIdProperty = new EnumIntProperty(this, TerritoryId);
     TerritoryIdProperty.Size = 10;
     TerritoryIdProperty.EnumType = "sales territory";
     TerritoryIdProperty.Editable = false;
     DataObject objLookup = new SalesCustomerLookupObject();
     AddChildObject(Lookup, objLookup);
     DataObject objBillingAddress = new AddressObjectCustomized();
     AddChildObject(BillingAddress, objBillingAddress);
     DataObject objShippingAddress = new AddressObjectCustomized();
     AddChildObject(ShippingAddress, objShippingAddress);
 }