Exemplo n.º 1
0
        void OrderView_FBBasePageLoaded(object sender, EventArgs e)
        {

            string typeName = this.Type;

            if (typeName == "AuditOrder")
            {

                AuditOrder ao = new AuditOrder();
                ao.OrderType = typeName;
                ao.InitForm();
                this.LayoutRoot.Children.Add(ao);
                currentPart = ao as IWebPart;
            }
            else
            {
                CommonView commonView = new CommonView();
                Type type = CommonFunction.GetType(typeName, CommonFunction.TypeCategory.EntityObject);
                OrderEntity orderEntity = new OrderEntity(type);
                commonView.DefaultEntity = orderEntity;
                commonView.InitForm();
                this.LayoutRoot.Children.Add(commonView);
                currentPart = commonView as IWebPart;
            }
        }
Exemplo n.º 2
0
        void OrderView_FBBasePageLoaded(object sender, EventArgs e)
        {
            string typeName = this.Type;

            if (typeName == "AuditOrder")
            {
                AuditOrder ao = new AuditOrder();
                ao.OrderType = typeName;
                ao.InitForm();
                this.LayoutRoot.Children.Add(ao);
                currentPart = ao as IWebPart;
            }
            else
            {
                CommonView  commonView  = new CommonView();
                Type        type        = CommonFunction.GetType(typeName, CommonFunction.TypeCategory.EntityObject);
                OrderEntity orderEntity = new OrderEntity(type);
                commonView.DefaultEntity = orderEntity;
                commonView.InitForm();
                this.LayoutRoot.Children.Add(commonView);
                currentPart = commonView as IWebPart;
            }
        }