Example #1
0
        protected override void Initialize()
        {
            AccountNumberProperty             = new TextProperty(this, AccountNumber);
            AccountNumberProperty.Size        = 15;
            CommentProperty                   = new TextProperty(this, Comment);
            CommentProperty.Size              = 128;
            ModifiedDateProperty              = new DateTimeProperty(this, ModifiedDate);
            ModifiedDateProperty.Required     = true;
            ModifiedDateProperty.Editable     = false;
            OnlineOrderFlagProperty           = new BooleanProperty(this, OnlineOrderFlag);
            OnlineOrderFlagProperty.Required  = true;
            OrderDateProperty                 = new DateProperty(this, OrderDate);
            OrderDateProperty.Required        = true;
            OrderDateProperty.Editable        = false;
            PurchaseOrderNumberProperty       = new TextProperty(this, PurchaseOrderNumber);
            PurchaseOrderNumberProperty.Size  = 25;
            RevisionNumberProperty            = new TinyIntegerProperty(this, RevisionNumber);
            RevisionNumberProperty.Required   = true;
            RevisionNumberProperty.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;
            ShipDateProperty                  = new DateProperty(this, ShipDate);
            StatusProperty          = new EnumByteProperty(this, Status);
            StatusProperty.Required = true;
            StatusProperty.Size     = 10;
            StatusProperty.EnumType = "sales order status";
            DataObject objCustomer = new SalesOrderCustomerObjectCustomized();

            AddChildObject(Customer, objCustomer);
            DataObject objDetail = new SalesOrderDetailList();

            AddChildObject(Detail, objDetail);
            DataObject objPayment = new SalesOrderPaymentObject();

            AddChildObject(Payment, objPayment);
            DataObject objSales = new SalesOrderSalesObjectCustomized();

            AddChildObject(Sales, objSales);
        }
 protected override void Initialize()
 {
     AccountNumberProperty = new TextProperty(this, AccountNumber);
     AccountNumberProperty.Size = 15;
     CommentProperty = new TextProperty(this, Comment);
     CommentProperty.Size = 128;
     ModifiedDateProperty = new DateTimeProperty(this, ModifiedDate);
     ModifiedDateProperty.Required = true;
     ModifiedDateProperty.Editable = false;
     OnlineOrderFlagProperty = new BooleanProperty(this, OnlineOrderFlag);
     OnlineOrderFlagProperty.Required = true;
     OrderDateProperty = new DateProperty(this, OrderDate);
     OrderDateProperty.Required = true;
     OrderDateProperty.Editable = false;
     PurchaseOrderNumberProperty = new TextProperty(this, PurchaseOrderNumber);
     PurchaseOrderNumberProperty.Size = 25;
     RevisionNumberProperty = new TinyIntegerProperty(this, RevisionNumber);
     RevisionNumberProperty.Required = true;
     RevisionNumberProperty.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;
     ShipDateProperty = new DateProperty(this, ShipDate);
     StatusProperty = new EnumByteProperty(this, Status);
     StatusProperty.Required = true;
     StatusProperty.Size = 10;
     StatusProperty.EnumType = "sales order status";
     DataObject objCustomer = new SalesOrderCustomerObjectCustomized();
     AddChildObject(Customer, objCustomer);
     DataObject objDetail = new SalesOrderDetailList();
     AddChildObject(Detail, objDetail);
     DataObject objPayment = new SalesOrderPaymentObject();
     AddChildObject(Payment, objPayment);
     DataObject objSales = new SalesOrderSalesObjectCustomized();
     AddChildObject(Sales, objSales);
 }