Example #1
0
        protected override void OnPreInit(EventArgs e)
        {
            base.OnPreInit(e);
            PropertyEditorHelper.AttachToPage(this);

            Response.Cache.SetCacheability(HttpCacheability.NoCache);
        }
Example #2
0
        protected override void OnPreInit(EventArgs e)
        {
            base.OnPreInit(e);
            this.Response.Cache.SetCacheability(HttpCacheability.NoCache);

            PropertyEditorHelper.AttachToPage(this);
            if (this.IsPostBack == false && this.IsCallback == false)
            {
                string[] ids = Request.Params.GetValues("ids");
                if (ids != null)
                {
                    this.objNum.InnerText = ids.Length.ToString();
                    var objects = DbUtil.LoadObjects(ids);
                    HashSet <string> schemaTypes = GetSchemaTypes(objects);
                    HashSet <string> groupNames  = GetCommonGroups(schemaTypes);
                    List <SchemaPropertyDefineConfigurationElement> propertyDefines = GetPropertyDefines(groupNames);
                    SchemaPropertyValueCollection propertyValues = GetCommonValues(objects, propertyDefines);

                    HashSet <string> tabNames = GetTabNames(propertyDefines);
                    RenderTabs(schemaTypes, propertyValues, tabNames);

                    this.ViewState["ids"]         = ids;
                    this.ViewState["schemaTypes"] = schemaTypes;
                    this.objectDetails.Value      = JSONSerializerExecute.Serialize(objects);
                }
            }
            else
            {
                HashSet <string> schemaTypes = this.ViewState["schemaTypes"] as HashSet <string>;
                if (schemaTypes != null)
                {
                    HashSet <string> groupNames = GetCommonGroups(schemaTypes);
                    List <SchemaPropertyDefineConfigurationElement> propertyDefines = GetPropertyDefines(groupNames);
                }
            }
        }
 protected override void OnPreInit(EventArgs e)
 {
     base.OnPreInit(e);
     PropertyEditorHelper.AttachToPage(this);
 }