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

            Response.Cache.SetCacheability(HttpCacheability.NoCache);
        }
Esempio n. 2
0
        private void RegisterPropertyEditors()
        {
            PropertyEditorHelper.RegisterEditor(new StandardPropertyEditor());
            PropertyEditorHelper.RegisterEditor(new BooleanPropertyEditor());

            PropertyEditorHelper.RegisterEditor(new PasswordConfirmationEditor());
        }
Esempio n. 3
0
 private static void PropertyEditorRegister()
 {
     PropertyEditorHelper.RegisterEditor(new StandardPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new BooleanPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new EnumPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new ObjectPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new DatePropertyEditor());
     PropertyEditorHelper.RegisterEditor(new DateTimePropertyEditor());
 }
Esempio n. 4
0
 private void RegisterPropertyEditors()
 {
     PropertyEditorHelper.RegisterEditor(new StandardPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new BooleanPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new DatePropertyEditor());
     PropertyEditorHelper.RegisterEditor(new DateTimePropertyEditor());
     PropertyEditorHelper.RegisterEditor(new EnumPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new ObjectPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new CustomObjectListPropertyEditor());
 }
 private void RegisterPropertyEditors()
 {
     PropertyEditorHelper.RegisterEditor(new StandardPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new BooleanPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new DatePropertyEditor());
     PropertyEditorHelper.RegisterEditor(new DateTimePropertyEditor());
     PropertyEditorHelper.RegisterEditor(new EnumPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new ObjectPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new OUUserInputPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new ImageUploaderPropertyEditor());
 }
Esempio n. 6
0
        public string GetScript()
        {
            var items = PropertyEditorHelper.GetPropertyItemsFor(_formType);

            if (typeof(ICustomizedFormScript).IsAssignableFrom(_formType))
            {
                var instance = InstanceCreator.GetInstance(_formType) as ICustomizedFormScript;
                instance.Customize(items);
            }

            return(String.Format("Q$ScriptData.set({0}, {1});", ("Form." + _name).ToSingleQuoted(), items.ToJson()));
        }
Esempio n. 7
0
 private void PropertyEditorRegister()
 {
     PropertyEditorHelper.RegisterEditor(new StandardPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new BooleanPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new EnumPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new ObjectPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new DatePropertyEditor());
     PropertyEditorHelper.RegisterEditor(new DateTimePropertyEditor());
     PropertyEditorHelper.RegisterEditor(new CodeNameUniqueEditor());
     PropertyEditorHelper.RegisterEditor(new GetPinYinEditor());
     PropertyEditorHelper.RegisterEditor(new ImageUploaderPropertyEditor());
 }
 private void PropertyEditorRegister()
 {
     PropertyEditorHelper.RegisterEditor(new StandardPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new BooleanPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new EnumPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new ObjectPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new DatePropertyEditor());
     PropertyEditorHelper.RegisterEditor(new DateTimePropertyEditor());
     PropertyEditorHelper.RegisterEditor(new OUUserInputPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new ImageUploaderPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new CustomObjectListPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new ImageUploaderPropertyEditorForGrid());
 }
 private void PropertyEditorRegister()
 {
     PropertyEditorHelper.RegisterEditor(new StandardPropertyEditor());
     //注册ValidatorPropertyEditor
     PropertyEditorHelper.RegisterEditor(new ValidatorsPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new BooleanPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new EnumPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new ObjectPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new DatePropertyEditor());
     PropertyEditorHelper.RegisterEditor(new DateTimePropertyEditor());
     PropertyEditorHelper.RegisterEditor(new ImageUploaderPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new ImageUploaderPropertyEditorForGrid());
     PropertyEditorHelper.RegisterEditor(new OUUserInputPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new RoleGraphPropertyEditor());
 }
Esempio n. 10
0
 private void PropertyEditorRegister()
 {
     PropertyEditorHelper.RegisterEditor(new StandardPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new BooleanPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new EnumPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new ObjectPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new DatePropertyEditor());
     PropertyEditorHelper.RegisterEditor(new DateTimePropertyEditor());
     PropertyEditorHelper.RegisterEditor(new GenerateTypePropertyEditor());
     PropertyEditorHelper.RegisterEditor(new BranchProcessKeyPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new ReceiversObjectListPropertyEditor());
     //PropertyEditorHelper.RegisterEditor(new BranchConditionPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new ServiceOperationPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new ConditionExpressionPropertyEditor());
 }
Esempio n. 11
0
 private static void PropertyEditorRegister()
 {
     PropertyEditorHelper.RegisterEditor(new StandardPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new BooleanPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new EnumPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new ObjectPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new DatePropertyEditor());
     PropertyEditorHelper.RegisterEditor(new DateTimePropertyEditor());
     PropertyEditorHelper.RegisterEditor(new ObjectListPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new ReceiversObjectListPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new ConditionExpressionPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new KeyPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new CanActivityKeysEditor());
     PropertyEditorHelper.RegisterEditor(new BranchProcessKeyPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new DynamicPropertyEditor());
 }
Esempio n. 12
0
 private void PropertyEditorRegister()
 {
     PropertyEditorHelper.RegisterEditor(new StandardPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new BooleanPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new EnumPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new ObjectPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new DatePropertyEditor());
     PropertyEditorHelper.RegisterEditor(new DateTimePropertyEditor());
     PropertyEditorHelper.RegisterEditor(new AdminScopeEditor());
     PropertyEditorHelper.RegisterEditor(new CodeNameUniqueEditor());
     PropertyEditorHelper.RegisterEditor(new GetPinYinEditor());
     //PropertyEditorHelper.RegisterEditor(new ImageUploaderPropertyEditor());
     PropertyEditorHelper.RegisterEditor(new PObjectNameEditor());
     PropertyEditorHelper.RegisterEditor(new SchemaCategoryEditor());
     PropertyEditorHelper.RegisterEditor(new RoleGraphPropertyEditor());
 }
Esempio n. 13
0
        private void PropertyEditorRegister()
        {
            PropertyEditorHelper.RegisterEditor(new StandardPropertyEditor());
            PropertyEditorHelper.RegisterEditor(new BooleanPropertyEditor());
            PropertyEditorHelper.RegisterEditor(new EnumPropertyEditor());
            PropertyEditorHelper.RegisterEditor(new ObjectPropertyEditor());
            PropertyEditorHelper.RegisterEditor(new DatePropertyEditor());
            PropertyEditorHelper.RegisterEditor(new DateTimePropertyEditor());
            PropertyEditorHelper.RegisterEditor(new CodeNameUniqueEditor());
            PropertyEditorHelper.RegisterEditor(new GetPinYinEditor());
            PropertyEditorHelper.RegisterEditor(new ImageUploaderPropertyEditor());
            PropertyEditorHelper.RegisterEditor(new PObjectNameEditor());
            PropertyEditorHelper.RegisterEditor(new ReferenceEntityCodeNameEditor());

            //PropertyEditorHelper.RegisterEditor(new EntityFieldPropertyEditorSceneAdapter());
        }
Esempio n. 14
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);
                }
            }
        }
Esempio n. 15
0
 private void PropertyEditorRegister()
 {
     PropertyEditorHelper.RegisterEditor(new StandardPropertyEditor());
 }
 private void RegisterPropertyEditor()
 {
     PropertyEditorHelper.RegisterEditor(new SignaturePropertyEditor());
 }
Esempio n. 17
0
 private void RegisterPropertyEditors()
 {
     PropertyEditorHelper.RegisterEditor(new MaterialPropertyEditor());
 }
 private void RegisterPropertyEditors()
 {
     PropertyEditorHelper.RegisterEditor(new ClientGridPropertyEditor());
 }
Esempio n. 19
0
 protected override void OnPreInit(EventArgs e)
 {
     base.OnPreInit(e);
     PropertyEditorHelper.AttachToPage(this);
 }