Beispiel #1
0
        protected override void Initialize()
        {
            CurrencyRateProperty          = new TextProperty(this, CurrencyRate);
            CurrencyRateProperty.Editable = false;
            DueDateProperty               = new DateProperty(this, DueDate);
            DueDateProperty.Required      = true;
            FreightProperty               = new MoneyProperty(this, Freight);
            FreightProperty.Required      = true;
            FreightProperty.Editable      = false;
            ShipMethodIdProperty          = new EnumIntProperty(this, ShipMethodId);
            ShipMethodIdProperty.Required = true;
            ShipMethodIdProperty.Size     = 10;
            ShipMethodIdProperty.EnumType = "ship method";
            SubTotalProperty              = new MoneyProperty(this, SubTotal);
            SubTotalProperty.Required     = true;
            SubTotalProperty.Editable     = false;
            TaxAmtProperty            = new MoneyProperty(this, TaxAmt);
            TaxAmtProperty.Required   = true;
            TaxAmtProperty.Editable   = false;
            TotalDueProperty          = new MoneyProperty(this, TotalDue);
            TotalDueProperty.Required = true;
            TotalDueProperty.Editable = false;
            DataObject objCreditCard = new CreditCardPaymentObjectCustomized();

            AddChildObject(CreditCard, objCreditCard);
        }
 protected override void Initialize()
 {
     CurrencyRateProperty = new TextProperty(this, CurrencyRate);
     CurrencyRateProperty.Editable = false;
     DueDateProperty = new DateProperty(this, DueDate);
     DueDateProperty.Required = true;
     FreightProperty = new MoneyProperty(this, Freight);
     FreightProperty.Required = true;
     FreightProperty.Editable = false;
     ShipMethodIdProperty = new EnumIntProperty(this, ShipMethodId);
     ShipMethodIdProperty.Required = true;
     ShipMethodIdProperty.Size = 10;
     ShipMethodIdProperty.EnumType = "ship method";
     SubTotalProperty = new MoneyProperty(this, SubTotal);
     SubTotalProperty.Required = true;
     SubTotalProperty.Editable = false;
     TaxAmtProperty = new MoneyProperty(this, TaxAmt);
     TaxAmtProperty.Required = true;
     TaxAmtProperty.Editable = false;
     TotalDueProperty = new MoneyProperty(this, TotalDue);
     TotalDueProperty.Required = true;
     TotalDueProperty.Editable = false;
     DataObject objCreditCard = new CreditCardPaymentObjectCustomized();
     AddChildObject(CreditCard, objCreditCard);
 }