Пример #1
0
        protected override void ToJson(LiteJsonWriter json)
        {
            json.WritePropertyIf("queryMode", queryMode);
            json.WritePropertyIf("displayField", displayField);
            json.WritePropertyIf("valueField", valueField);
            json.WritePropertyIf("store", store);

            base.ToJson(json);
        }
Пример #2
0
        protected override void ToJson(LiteJsonWriter json)
        {
            json.WriteProperty("type", "belongsTo");
            json.WritePropertyIf("foreignKey", foreignKey);
            json.WriteProperty("primaryKey", "Id");
            json.WritePropertyIf("associationKey", associationKey);

            base.ToJson(json);
        }
Пример #3
0
        protected override void ToJson(LiteJsonWriter json)
        {
            //json.WriteProperty("autoDestroy", true);

            json.WritePropertyIf("fields", fields);
            json.WritePropertyIf("data", data);

            base.ToJson(json);
        }
Пример #4
0
        protected override void ToJson(LiteJsonWriter json)
        {
            json.WriteProperty("type", "hasMany");
            json.WritePropertyIf("name", name);
            json.WriteProperty("primaryKey", "Id");
            json.WritePropertyIf("foreignKey", foreignKey);

            if (autoLoad) { json.WriteProperty("autoLoad", true); }

            base.ToJson(json);
        }
Пример #5
0
        protected override void ToJson(LiteJsonWriter json)
        {
            json.WritePropertyIf("name", name);
            json.WritePropertyIf("anchor", anchor);
            json.WritePropertyIf("fieldLabel", fieldLabel);
            json.WritePropertyIf("visibilityIndicator", visibilityIndicator);
            if (isReadonly) { json.WriteProperty("readOnly", isReadonly); }

            this.SetProperty("xtype", xtype);
            base.ToJson(json);
        }
Пример #6
0
        protected override void ToJson(LiteJsonWriter json)
        {
            json.WriteProperty("header", header);
            json.WritePropertyIf("xtype", xtype);
            json.WritePropertyIf("editor", editor);
            if (locked) { json.WritePropertyIf("locked", locked); }

            if (flex > 0)
            {
                json.WriteProperty("flex", flex);
            }
            json.WriteProperty("dataIndex", dataIndex);
        }
Пример #7
0
        protected override void ToJson(LiteJsonWriter json)
        {
            //当使用自定义数据源时,强制其使用本地数据。
            if (!string.IsNullOrEmpty(this.dataSourceProperty))
            {
                this.queryMode = "local";
            }

            json.WritePropertyIf("model", model);
            json.WritePropertyIf("dataSourceProperty", dataSourceProperty);

            base.ToJson(json);
        }
Пример #8
0
 protected override void ToJson(LiteJsonWriter json)
 {
     json.WriteProperty("name", name);
     if (!persist) json.WriteProperty("persist", persist);
     json.WritePropertyIf("defaultValue", defaultValue);
     json.WriteProperty("type", ServerTypeHelper.GetClientFieldTypeName(type));
 }
Пример #9
0
        protected override void ToJson(LiteJsonWriter json)
        {
            json.WritePropertyIf("text", text);

            this.SetProperty("command", command);

            base.ToJson(json);
        }
Пример #10
0
        protected override void ToJson(LiteJsonWriter json)
        {
            if (isTree)
            {
                json.WritePropertyIf("isTree", isTree);
            }

            json.WriteProperty("fields", fields);

            if (associations.Count > 0)
            {
                json.WriteProperty("associations", associations);
            }
        }
Пример #11
0
 protected override void ToJson(LiteJsonWriter json)
 {
     json.WritePropertyIf("model", model);
     json.WritePropertyIf("viewName", viewName);
     json.WritePropertyIf("label", label);
     json.WritePropertyIf("groupBy", groupBy);
     json.WritePropertyIf("gridConfig", gridConfig);
     json.WritePropertyIf("formConfig", formConfig);
     json.WritePropertyIf("storeConfig", storeConfig);
 }
Пример #12
0
 protected override void ToJson(LiteJsonWriter json)
 {
     json.WritePropertyIf("keyLabel", keyLabel);
     json.WritePropertyIf("url", url);
     json.WritePropertyIf("model", model);
     json.WritePropertyIf("viewName", viewName);
     json.WritePropertyIf("clientRuntime", clientRuntime);
     if (children.Count > 0) { json.WritePropertyIf("children", children); }
 }
Пример #13
0
        protected override void ToJson(LiteJsonWriter json)
        {
            if (mainBlock == null) throw new ArgumentNullException("mainBlock");

            json.WritePropertyIf("layoutClass", layoutClass);
            json.WritePropertyIf("childProperty", childProperty);
            json.WriteProperty("mainBlock", mainBlock);
            json.WritePropertyIf("children", children);
            json.WritePropertyIf("surrounders", surrounders);
        }
Пример #14
0
        protected override void ToJson(LiteJsonWriter json)
        {
            json.WritePropertyIf("surrounderType", surrounderType);

            base.ToJson(json);
        }
Пример #15
0
 protected override void ToJson(LiteJsonWriter json)
 {
     json.WriteProperty(SuccessProperty, Success.Box());
     json.WritePropertyIf(MessageProperty, Message);
 }