protected void Page_Load(object sender, EventArgs e)
		{
			if (this.Page.IsPostBack == false)
			{
				#region "propertyGrid"
				PropertyDefineCollection propeties = new PropertyDefineCollection();
				propeties.LoadPropertiesFromConfiguration("DateTimeFieldProperties");

				this.propertyGrid.Properties.InitFromPropertyDefineCollection(propeties);
				#endregion

				#region "propertyForm"
				PropertyLayoutSectionCollection layouts = new PropertyLayoutSectionCollection();
				layouts.LoadLayoutSectionFromConfiguration("DefalutLayout");

				this.propertyForm.Layouts.InitFromLayoutSectionCollection(layouts);

				PropertyDefineCollection formPropeties = new PropertyDefineCollection();
				formPropeties.LoadPropertiesFromConfiguration("IntegerFieldProperties");

				this.propertyForm.Properties.InitFromPropertyDefineCollection(formPropeties);
				#endregion
			}

			PropertyEditorRegister();
		}
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.Page.IsPostBack == false)
            {
                #region "propertyGrid"
                PropertyDefineCollection propeties = new PropertyDefineCollection();
                propeties.LoadPropertiesFromConfiguration("DateTimeFieldProperties");

                this.propertyGrid.Properties.InitFromPropertyDefineCollection(propeties);
                #endregion

                #region "propertyForm"
                PropertyLayoutSectionCollection layouts = new PropertyLayoutSectionCollection();
                layouts.LoadLayoutSectionFromConfiguration("DefalutLayout");

                this.propertyForm.Layouts.InitFromLayoutSectionCollection(layouts);

                PropertyDefineCollection formPropeties = new PropertyDefineCollection();
                formPropeties.LoadPropertiesFromConfiguration("IntegerFieldProperties");

                this.propertyForm.Properties.InitFromPropertyDefineCollection(formPropeties);
                #endregion
            }

            PropertyEditorRegister();
        }
예제 #3
0
        private Control RenderOnePanel(SchemaTabDefine tab, SchemaPropertyValueCollection properties, Scene currentScene)
        {
            HtmlGenericControl panel = new HtmlGenericControl("div");

            panel.ID              = tab.Name;
            panel.Style["width"]  = "100%";
            panel.Style["height"] = "100%";

            PropertyForm pForm = new PropertyForm()
            {
                AutoSaveClientState = false
            };

            pForm.ID = tab.Name + "_Form";
            if (currentScene.Items[this.tabStrip.ID].Recursive == true)
            {
                pForm.ReadOnly = currentScene.Items[this.tabStrip.ID].ReadOnly;
            }

            pForm.Properties.CopyFrom(properties.ToPropertyValues());

            PropertyLayoutSectionCollection layouts = new PropertyLayoutSectionCollection();

            layouts.LoadLayoutSectionFromConfiguration("DefalutLayout");

            pForm.Layouts.InitFromLayoutSectionCollection(layouts);

            pForm.Style["width"]  = "100%";
            pForm.Style["height"] = "400";

            panel.Controls.Add(pForm);

            return(panel);
        }
		protected void Page_Load(object sender, EventArgs e)
		{
			if (this.Page.IsPostBack == false)
			{
				PropertyLayoutSectionCollection layouts = new PropertyLayoutSectionCollection();
				layouts.LoadLayoutSectionFromConfiguration("DefalutLayout");

				this.propertyForm.Layouts.InitFromLayoutSectionCollection(layouts);

				PropertyDefineCollection propeties = new PropertyDefineCollection();
				propeties.LoadPropertiesFromConfiguration("OUUser");

				this.propertyForm.Properties.InitFromPropertyDefineCollection(propeties);
			}

			RegisterPropertyEditors();
		}
예제 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.Page.IsPostBack == false)
            {
                PropertyLayoutSectionCollection layouts = new PropertyLayoutSectionCollection();
                layouts.LoadLayoutSectionFromConfiguration("DefalutLayout");

                this.propertyForm.Layouts.InitFromLayoutSectionCollection(layouts);

                PropertyDefineCollection propeties = new PropertyDefineCollection();
                propeties.LoadPropertiesFromConfiguration("OUUser");

                this.propertyForm.Properties.InitFromPropertyDefineCollection(propeties);
            }

            RegisterPropertyEditors();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                PropertyLayoutSectionCollection layouts = new PropertyLayoutSectionCollection();
                layouts.LoadLayoutSectionFromConfiguration("DefalutLayout");

                this.propertyForm.Layouts.InitFromLayoutSectionCollection(layouts);

                PropertyDefineCollection propeties = new PropertyDefineCollection();
                propeties.LoadPropertiesFromConfiguration("MaterialEditorTest");

                this.propertyForm.Properties.InitFromPropertyDefineCollection(propeties);

                //RegisterPropertyEditors();
                //已配置
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                PropertyLayoutSectionCollection layouts = new PropertyLayoutSectionCollection();
                layouts.LoadLayoutSectionFromConfiguration("DefalutLayout");

                this.propertyForm.Layouts.InitFromLayoutSectionCollection(layouts);

                PropertyDefineCollection propeties = new PropertyDefineCollection();
                propeties.LoadPropertiesFromConfiguration("MaterialEditorTest");

                this.propertyForm.Properties.InitFromPropertyDefineCollection(propeties);

                //RegisterPropertyEditors();
                //已配置
            }

        }
예제 #8
0
        private void RenderTabs(HashSet <string> schemaTypes, SchemaPropertyValueCollection propertyValues, HashSet <string> tabNames)
        {
            if (tabNames.Count > 0)
            {
                var tabs = ObjectSchemaSettings.GetConfig().Schemas[schemaTypes.First()].Tabs;
                foreach (string item in tabNames)
                {
                    RelaxedTabPage tabPage = new RelaxedTabPage()
                    {
                        Title  = tabs[item].Description,
                        TagKey = item
                    };

                    this.tabs.TabPages.Add(tabPage);

                    PropertyForm pForm = new PropertyForm()
                    {
                        AutoSaveClientState = false
                    };
                    pForm.ID       = tabPage.TagKey + "_Form";
                    pForm.ReadOnly = this.EditEnabled == false;

                    //// if (currentScene.Items[this.tabStrip.ID].Recursive == true)
                    ////    pForm.ReadOnly = currentScene.Items[this.tabStrip.ID].ReadOnly;

                    var pageValues = TabGroup(propertyValues, item).ToPropertyValues();
                    pForm.Properties.CopyFrom(pageValues);
                    pForm.ShowCheckBoxes = true;

                    PropertyLayoutSectionCollection layouts = new PropertyLayoutSectionCollection();
                    layouts.LoadLayoutSectionFromConfiguration("DefalutLayout");

                    pForm.Layouts.InitFromLayoutSectionCollection(layouts);

                    pForm.Style["width"]  = "100%";
                    pForm.Style["height"] = "400";

                    tabPage.Controls.Add(pForm);
                }

                this.tabs.ActiveTabPageIndex = 0;
            }
        }
예제 #9
0
        protected override void CommandStateInitialized()
        {
            //bindingControl.Data = this.ViewData.Data;
            if (!IsPostBack)
            {
                PropertyLayoutSectionCollection layouts = new PropertyLayoutSectionCollection();
                layouts.LoadLayoutSectionFromConfiguration("DefalutLayout");
                this.propertyForm.Layouts.InitFromLayoutSectionCollection(layouts);

                PropertyDefineCollection propeties = new PropertyDefineCollection();
                propeties.LoadPropertiesFromConfiguration("DynamicFormTest");
                this.propertyForm.Properties.InitFromPropertyDefineCollection(propeties);

                var propertiesInAppContext = this.ViewData.Data.Properties;

                if (propertiesInAppContext != null)
                {
                    this.propertyForm.Properties.ReplaceExistedPropertyValues(propertiesInAppContext);
                }
            }
        }
예제 #10
0
        protected void InitData()
        {
            PropertyLayoutSectionCollection layouts = new PropertyLayoutSectionCollection();

            layouts.LoadLayoutSectionFromConfiguration("DefalutLayout");
            this.propertyForm.Layouts.InitFromLayoutSectionCollection(layouts);
            if (!string.IsNullOrEmpty(EntityInstenceID))
            {
                DEEntityInstanceBase entityInstence = DEInstanceAdapter.Instance.Load(EntityInstenceID);
                this.propertyForm.Properties.CopyFrom(entityInstence.Fields.ToPropertyValues());
            }
            else if (!string.IsNullOrEmpty(EntityID))
            {
                DynamicEntity entity = (DynamicEntity)DESchemaObjectAdapter.Instance.Load(EntityID);
                this.propertyForm.Properties.CopyFrom(entity.Fields.ToPropertyValues());

                //var propertiesInAppContext = this.ViewData.Data.Properties;
                //if (propertiesInAppContext != null)
                //{
                //    this.propertyForm.Properties.ReplaceExistedPropertyValues(propertiesInAppContext);
                //}
            }
        }
예제 #11
0
        private void InitPropertyForm(DESchemaObjectBase data, bool readOnly)
        {
            this.propertyForm.ReadOnly = readOnly;

            data.Properties.ForEach(p =>
            {
                if (Request.QueryString[p.Definition.Name].IsNotEmpty())
                {
                    p.StringValue = Request.QueryString[p.Definition.Name].Trim();
                }
            });

            this.propertyForm.Properties.CopyFrom(data.Properties.ToPropertyValues());


            var layouts = new PropertyLayoutSectionCollection();

            layouts.LoadLayoutSectionFromConfiguration("ETLLayout");

            this.propertyForm.Layouts.InitFromLayoutSectionCollection(layouts);

            this.propertyForm.Style["width"] = "100%";
        }
예제 #12
0
        private Control RenderOnePanel(SchemaTabDefine tab, SchemaPropertyValueCollection properties, bool readOnly)
        {
            RelaxedTabPage tabPage = new RelaxedTabPage()
            {
                Title  = tab.Description,
                TagKey = tab.Name
            };

            this.tabs.TabPages.Add(tabPage);

            PropertyForm pForm = new PropertyForm()
            {
                AutoSaveClientState = false
            };

            pForm.ID = tab.Name + "_Form";

            //// if (currentScene.Items[this.tabStrip.ID].Recursive == true)
            ////    pForm.ReadOnly = currentScene.Items[this.tabStrip.ID].ReadOnly;

            pForm.Properties.CopyFrom(properties.ToPropertyValues());

            PropertyLayoutSectionCollection layouts = new PropertyLayoutSectionCollection();

            layouts.LoadLayoutSectionFromConfiguration("DefalutLayout");

            pForm.Layouts.InitFromLayoutSectionCollection(layouts);

            pForm.Style["width"]  = "100%";
            pForm.Style["height"] = "400";

            tabPage.Controls.Add(pForm);
            pForm.ReadOnly = readOnly;

            return(tabPage);
        }
예제 #13
0
        private Control RenderOnePanel(SchemaTabDefine tab, Control container, SchemaPropertyValueCollection properties, bool readOnly)
        {
            HtmlGenericControl panel = new HtmlGenericControl("div");

            panel.ID = tab.Name;
            panel.Style["width"] = "100%";
            panel.Style["height"] = "100%";

            this.panelContainer.Controls.Add(panel);

            PropertyForm pForm = new PropertyForm() { AutoSaveClientState = false };
            pForm.ID = tab.Name + "_Form";
            pForm.ReadOnly = readOnly;

            //// if (currentScene.Items[this.tabStrip.ID].Recursive == true)
            ////    pForm.ReadOnly = currentScene.Items[this.tabStrip.ID].ReadOnly;

            pForm.Properties.CopyFrom(properties.ToPropertyValues());

            PropertyLayoutSectionCollection layouts = new PropertyLayoutSectionCollection();
            layouts.LoadLayoutSectionFromConfiguration("DefalutLayout");

            pForm.Layouts.InitFromLayoutSectionCollection(layouts);

            pForm.Style["width"] = "100%";
            pForm.Style["height"] = "400";

            panel.Controls.Add(pForm);

            return panel;
        }
예제 #14
0
		private void RenderTabs(HashSet<string> schemaTypes, SchemaPropertyValueCollection propertyValues, HashSet<string> tabNames)
		{
			if (tabNames.Count > 0)
			{
				var tabs = ObjectSchemaSettings.GetConfig().Schemas[schemaTypes.First()].Tabs;
				foreach (string item in tabNames)
				{
					RelaxedTabPage tabPage = new RelaxedTabPage()
					{
						Title = tabs[item].Description,
						TagKey = item
					};

					this.tabs.TabPages.Add(tabPage);

					PropertyForm pForm = new PropertyForm() { AutoSaveClientState = false };
					pForm.ID = tabPage.TagKey + "_Form";
					pForm.ReadOnly = this.EditEnabled == false;

					//// if (currentScene.Items[this.tabStrip.ID].Recursive == true)
					////    pForm.ReadOnly = currentScene.Items[this.tabStrip.ID].ReadOnly;

					var pageValues = TabGroup(propertyValues, item).ToPropertyValues();
					pForm.Properties.CopyFrom(pageValues);
					pForm.ShowCheckBoxes = true;

					PropertyLayoutSectionCollection layouts = new PropertyLayoutSectionCollection();
					layouts.LoadLayoutSectionFromConfiguration("DefalutLayout");

					pForm.Layouts.InitFromLayoutSectionCollection(layouts);

					pForm.Style["width"] = "100%";
					pForm.Style["height"] = "400";

					tabPage.Controls.Add(pForm);
				}

				this.tabs.ActiveTabPageIndex = 0;
			}
		}
예제 #15
0
		private Control RenderOnePanel(SchemaTabDefine tab, SchemaPropertyValueCollection properties, bool readOnly)
		{
			RelaxedTabPage tabPage = new RelaxedTabPage()
			{
				Title = tab.Description,
				TagKey = tab.Name
			};

			this.tabs.TabPages.Add(tabPage);

			PropertyForm pForm = new PropertyForm() { AutoSaveClientState = false };
			pForm.ID = tab.Name + "_Form";

			//// if (currentScene.Items[this.tabStrip.ID].Recursive == true)
			////    pForm.ReadOnly = currentScene.Items[this.tabStrip.ID].ReadOnly;

			pForm.Properties.CopyFrom(properties.ToPropertyValues());

			PropertyLayoutSectionCollection layouts = new PropertyLayoutSectionCollection();
			layouts.LoadLayoutSectionFromConfiguration("DefalutLayout");

			pForm.Layouts.InitFromLayoutSectionCollection(layouts);

			pForm.Style["width"] = "100%";
			pForm.Style["height"] = "400";

			tabPage.Controls.Add(pForm);
			pForm.ReadOnly = readOnly;

			return tabPage;
		}