Esempio n. 1
0
 protected override void Initialize()
 {
     CarrierTrackingNumberProperty          = new TextProperty(this, CarrierTrackingNumber);
     CarrierTrackingNumberProperty.Size     = 25;
     CarrierTrackingNumberProperty.Editable = false;
     LineTotalProperty                   = new MoneyProperty(this, LineTotal);
     LineTotalProperty.Required          = true;
     LineTotalProperty.Editable          = false;
     OrderQtyProperty                    = new SmallIntegerProperty(this, OrderQty);
     OrderQtyProperty.Required           = true;
     OrderQtyProperty.Editable           = false;
     ProductProperty                     = new EnumIntProperty(this, Product);
     ProductProperty.Required            = true;
     ProductProperty.EnumType            = "product";
     ProductProperty.Editable            = false;
     SalesOrderDetailIdProperty          = new IntegerKeyProperty(this, SalesOrderDetailId);
     SalesOrderDetailIdProperty.Required = true;
     SalesOrderDetailIdProperty.Editable = false;
     SpecialOfferProperty                = new EnumIntProperty(this, SpecialOffer);
     SpecialOfferProperty.Required       = true;
     SpecialOfferProperty.EnumType       = "special offer";
     SpecialOfferProperty.Editable       = false;
     UnitPriceProperty                   = new MoneyProperty(this, UnitPrice);
     UnitPriceProperty.Required          = true;
     UnitPriceProperty.Editable          = false;
     UnitPriceDiscountProperty           = new MoneyProperty(this, UnitPriceDiscount);
     UnitPriceDiscountProperty.Required  = true;
     UnitPriceDiscountProperty.Editable  = false;
 }
Esempio n. 2
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.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 = ServiceProvider.GetService <CreditCardPaymentObject>();

            AddChildObject(CreditCard, objCreditCard);
        }
Esempio n. 3
0
 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()
 {
     SalesOrderDetailIdProperty = new IntegerKeyProperty(this, SalesOrderDetailId)
     {
         Required = true,
         Editable = false,
         IsKey    = true,
     };
     SalesOrderIdProperty = new IntegerKeyProperty(this, SalesOrderId)
     {
         Required = true,
         Editable = false,
     };
     SubcategoryProperty = new EnumIntProperty(this, Subcategory)
     {
         EnumType = "product subcategory",
     };
     ProductIdProperty = new EnumIntProperty(this, ProductId)
     {
         Required = true,
         EnumType = "product",
     };
     OrderQtyProperty = new PositiveSmallIntProperty(this, OrderQty)
     {
         Required = true,
     };
     SpecialOfferIdProperty = new EnumIntProperty(this, SpecialOfferId)
     {
         Required = true,
         EnumType = "special offer",
     };
     UnitPriceProperty = new MoneyProperty(this, UnitPrice)
     {
         Required = true,
         Editable = false,
     };
     UnitPriceDiscountProperty = new PercentFractionProperty(this, UnitPriceDiscount)
     {
         Required = true,
         Editable = false,
     };
     LineTotalProperty = new MoneyProperty(this, LineTotal)
     {
         Required = true,
         Editable = false,
     };
     CarrierTrackingNumberProperty = new TextProperty(this, CarrierTrackingNumber)
     {
         Size = 25,
     };
 }
Esempio n. 5
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;
 }
 protected override void Initialize()
 {
     SalesOrderNumberOperatorProperty = new OperatorProperty(this, SalesOrderNumberOperator)
     {
         Size     = 25,
         EnumType = "operators",
     };
     SalesOrderNumberProperty = new TextProperty(this, SalesOrderNumber)
     {
         Size = 25,
     };
     StatusOperatorProperty = new OperatorProperty(this, StatusOperator)
     {
         Size     = 25,
         EnumType = "operators",
     };
     StatusProperty = new EnumByteProperty(this, Status)
     {
         IsMultiValued = true,
         EnumType      = "sales order status",
     };
     OrderDateOperatorProperty = new OperatorProperty(this, OrderDateOperator)
     {
         Size     = 25,
         EnumType = "operators",
     };
     OrderDateProperty = new DateProperty(this, OrderDate)
     {
     };
     OrderDate2Property = new DateProperty(this, OrderDate2)
     {
     };
     DueDateOperatorProperty = new OperatorProperty(this, DueDateOperator)
     {
         Size     = 25,
         EnumType = "operators",
     };
     DueDateProperty = new DateProperty(this, DueDate)
     {
     };
     DueDate2Property = new DateProperty(this, DueDate2)
     {
     };
     TotalDueOperatorProperty = new OperatorProperty(this, TotalDueOperator)
     {
         Size     = 25,
         EnumType = "operators",
     };
     TotalDueProperty = new MoneyProperty(this, TotalDue)
     {
     };
     TotalDue2Property = new MoneyProperty(this, TotalDue2)
     {
     };
     CustomerStoreOperatorProperty = new OperatorProperty(this, CustomerStoreOperator)
     {
         Size         = 25,
         EnumType     = "operators",
         HasNullCheck = true,
     };
     CustomerStoreProperty = new TextProperty(this, CustomerStore)
     {
     };
     CustomerNameOperatorProperty = new OperatorProperty(this, CustomerNameOperator)
     {
         Size         = 25,
         EnumType     = "operators",
         HasNullCheck = true,
     };
     CustomerNameProperty = new TextProperty(this, CustomerName)
     {
     };
     GlobalRegionProperty = new EnumProperty(this, GlobalRegion)
     {
         Size     = 50,
         EnumType = "sales territory group",
     };
     TerritoryIdOperatorProperty = new OperatorProperty(this, TerritoryIdOperator)
     {
         Size         = 25,
         EnumType     = "operators",
         HasNullCheck = true,
     };
     TerritoryIdProperty = new EnumIntProperty(this, TerritoryId)
     {
         EnumType = "sales territory",
     };
     SalesPersonIdOperatorProperty = new OperatorProperty(this, SalesPersonIdOperator)
     {
         Size         = 25,
         EnumType     = "operators",
         HasNullCheck = true,
     };
     SalesPersonIdProperty = new EnumIntProperty(this, SalesPersonId)
     {
         IsMultiValued = true,
         EnumType      = "sales person",
     };
 }
 protected override void Initialize()
 {
     SalesOrderIdProperty = new IntegerKeyProperty(this, SalesOrderId)
     {
         Required = true,
         Editable = false,
         IsKey    = true,
     };
     SalesOrderNumberProperty = new TextProperty(this, SalesOrderNumber)
     {
         Required = true,
         Size     = 25,
         Editable = false,
     };
     StatusProperty = new EnumByteProperty(this, Status)
     {
         Required = true,
         EnumType = "sales order status",
         Editable = false,
     };
     OrderDateProperty = new DateProperty(this, OrderDate)
     {
         Required = true,
         Editable = false,
     };
     ShipDateProperty = new DateProperty(this, ShipDate)
     {
         Editable = false,
     };
     DueDateProperty = new DateProperty(this, DueDate)
     {
         Required = true,
         Editable = false,
     };
     TotalDueProperty = new MoneyProperty(this, TotalDue)
     {
         Required = true,
         Editable = false,
     };
     OnlineOrderFlagProperty = new EnumBoolProperty(this, OnlineOrderFlag)
     {
         Required         = true,
         EnumType         = "yesno",
         LookupValidation = LookupValidationType.None,
         Editable         = false,
     };
     CustomerStoreProperty = new TextProperty(this, CustomerStore)
     {
         Size     = 50,
         Editable = false,
     };
     CustomerNameProperty = new TextProperty(this, CustomerName)
     {
         Size     = 50,
         Editable = false,
     };
     SalesPersonIdProperty = new EnumIntProperty(this, SalesPersonId)
     {
         EnumType = "sales person",
         Editable = false,
     };
     TerritoryIdProperty = new EnumIntProperty(this, TerritoryId)
     {
         EnumType = "sales territory",
         Editable = false,
     };
     DetailsAction = new ActionProperty(this, "Details");
     NewAction     = new ActionProperty(this, "New");
 }
Esempio n. 8
0
 set => SetValue(MoneyProperty, value);