protected override void Initialize()
 {
     CustomerNameProperty = new TextProperty(this, CustomerName);
     CustomerNameOperatorProperty = new OperatorProperty(this, CustomerNameOperator);
     CustomerNameOperatorProperty.Size = 10;
     CustomerNameOperatorProperty.EnumType = "operators";
     CustomerNameOperatorProperty.HasNullCheck = true;
     CustomerStoreProperty = new TextProperty(this, CustomerStore);
     CustomerStoreOperatorProperty = new OperatorProperty(this, CustomerStoreOperator);
     CustomerStoreOperatorProperty.Size = 10;
     CustomerStoreOperatorProperty.EnumType = "operators";
     CustomerStoreOperatorProperty.HasNullCheck = true;
     DueDateProperty = new DateProperty(this, DueDate);
     DueDate2Property = new DateProperty(this, DueDate2);
     DueDateOperatorProperty = new OperatorProperty(this, DueDateOperator);
     DueDateOperatorProperty.Size = 10;
     DueDateOperatorProperty.EnumType = "operators";
     GlobalRegionProperty = new EnumProperty(this, GlobalRegion);
     GlobalRegionProperty.Size = 50;
     GlobalRegionProperty.EnumType = "sales territory group";
     OrderDateProperty = new DateProperty(this, OrderDate);
     OrderDate2Property = new DateProperty(this, OrderDate2);
     OrderDateOperatorProperty = new OperatorProperty(this, OrderDateOperator);
     OrderDateOperatorProperty.Size = 10;
     OrderDateOperatorProperty.EnumType = "operators";
     SalesOrderNumberProperty = new TextProperty(this, SalesOrderNumber);
     SalesOrderNumberProperty.Size = 25;
     SalesOrderNumberOperatorProperty = new OperatorProperty(this, SalesOrderNumberOperator);
     SalesOrderNumberOperatorProperty.Size = 10;
     SalesOrderNumberOperatorProperty.EnumType = "operators";
     SalesPersonIdProperty = new EnumIntProperty(this, SalesPersonId);
     SalesPersonIdProperty.IsMultiValued = true;
     SalesPersonIdProperty.EnumType = "sales person";
     SalesPersonIdOperatorProperty = new OperatorProperty(this, SalesPersonIdOperator);
     SalesPersonIdOperatorProperty.Size = 10;
     SalesPersonIdOperatorProperty.EnumType = "operators";
     SalesPersonIdOperatorProperty.HasNullCheck = true;
     StatusProperty = new EnumByteProperty(this, Status);
     StatusProperty.Size = 10;
     StatusProperty.EnumType = "sales order status";
     StatusOperatorProperty = new OperatorProperty(this, StatusOperator);
     StatusOperatorProperty.Size = 10;
     StatusOperatorProperty.EnumType = "operators";
     TerritoryIdProperty = new EnumIntProperty(this, TerritoryId);
     TerritoryIdProperty.Size = 10;
     TerritoryIdProperty.EnumType = "sales territory";
     TerritoryIdOperatorProperty = new OperatorProperty(this, TerritoryIdOperator);
     TerritoryIdOperatorProperty.Size = 10;
     TerritoryIdOperatorProperty.EnumType = "operators";
     TerritoryIdOperatorProperty.HasNullCheck = true;
     TotalDueProperty = new MoneyProperty(this, TotalDue);
     TotalDue2Property = new MoneyProperty(this, TotalDue2);
     TotalDueOperatorProperty = new OperatorProperty(this, TotalDueOperator);
     TotalDueOperatorProperty.Size = 10;
     TotalDueOperatorProperty.EnumType = "operators";
 }
 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()
 {
     CarrierTrackingNumberProperty = new TextProperty(this, CarrierTrackingNumber);
     CarrierTrackingNumberProperty.Size = 25;
     LineTotalProperty = new MoneyProperty(this, LineTotal);
     LineTotalProperty.Required = true;
     ModifiedDateProperty = new DateTimeProperty(this, ModifiedDate);
     ModifiedDateProperty.Required = true;
     OrderQtyProperty = new SmallIntegerProperty(this, OrderQty);
     OrderQtyProperty.Required = true;
     ProductIdProperty = new EnumIntProperty(this, ProductId);
     ProductIdProperty.Required = true;
     ProductIdProperty.Size = 10;
     ProductIdProperty.EnumType = "product";
     RowguidProperty = new GuidProperty(this, Rowguid);
     RowguidProperty.Required = true;
     SalesOrderDetailIdProperty = new IntegerKeyProperty(this, SalesOrderDetailId);
     SalesOrderDetailIdProperty.Required = true;
     SalesOrderDetailIdProperty.Editable = false;
     SalesOrderIdProperty = new IntegerKeyProperty(this, SalesOrderId);
     SalesOrderIdProperty.Required = true;
     SalesOrderIdProperty.Editable = false;
     SpecialOfferIdProperty = new EnumIntProperty(this, SpecialOfferId);
     SpecialOfferIdProperty.Required = true;
     SpecialOfferIdProperty.Size = 10;
     SpecialOfferIdProperty.EnumType = "special offer";
     UnitPriceProperty = new MoneyProperty(this, UnitPrice);
     UnitPriceProperty.Required = true;
     UnitPriceDiscountProperty = new MoneyProperty(this, UnitPriceDiscount);
     UnitPriceDiscountProperty.Required = true;
 }
Exemplo n.º 4
0
 protected override void Initialize()
 {
     CustomerNameProperty = new TextProperty(this, CustomerName);
     CustomerNameProperty.Editable = false;
     CustomerStoreProperty = new TextProperty(this, CustomerStore);
     CustomerStoreProperty.Editable = false;
     DueDateProperty = new DateProperty(this, DueDate);
     DueDateProperty.Required = true;
     DueDateProperty.Editable = false;
     OnlineOrderFlagProperty = new EnumBoolProperty(this, OnlineOrderFlag);
     OnlineOrderFlagProperty.Required = true;
     OnlineOrderFlagProperty.Size = 10;
     OnlineOrderFlagProperty.EnumType = "yesno";
     OnlineOrderFlagProperty.Editable = false;
     OrderDateProperty = new DateProperty(this, OrderDate);
     OrderDateProperty.Required = true;
     OrderDateProperty.Editable = false;
     SalesOrderIdProperty = new IntegerKeyProperty(this, SalesOrderId);
     SalesOrderIdProperty.Required = true;
     SalesOrderIdProperty.Editable = false;
     SalesOrderNumberProperty = new TextProperty(this, SalesOrderNumber);
     SalesOrderNumberProperty.Required = true;
     SalesOrderNumberProperty.Size = 25;
     SalesOrderNumberProperty.Editable = false;
     SalesPersonIdProperty = new EnumIntProperty(this, SalesPersonId);
     SalesPersonIdProperty.EnumType = "sales person";
     SalesPersonIdProperty.Editable = false;
     ShipDateProperty = new DateProperty(this, ShipDate);
     ShipDateProperty.Editable = false;
     StatusProperty = new EnumByteProperty(this, Status);
     StatusProperty.Required = true;
     StatusProperty.Size = 10;
     StatusProperty.EnumType = "sales order status";
     StatusProperty.Editable = false;
     TerritoryIdProperty = new EnumIntProperty(this, TerritoryId);
     TerritoryIdProperty.Size = 10;
     TerritoryIdProperty.EnumType = "sales territory";
     TerritoryIdProperty.Editable = false;
     TotalDueProperty = new MoneyProperty(this, TotalDue);
     TotalDueProperty.Required = true;
     TotalDueProperty.Editable = false;
 }