예제 #1
0
파일: OrderView.xaml.cs 프로젝트: JuRogn/OA
        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;
            }
        }
예제 #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;
            }
        }