示例#1
0
 protected override void ToJson(LiteJsonWriter json)
 {
     if (tbar.Count > 0)
     {
         json.WriteProperty("tbar", tbar);
     }
     json.WriteProperty("items", items);
 }
示例#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("name", name);
     if (!persist)
     {
         json.WriteProperty("persist", persist);
     }
     json.WritePropertyIf("defaultValue", defaultValue);
     json.WriteProperty("type", ServerTypeHelper.GetClientFieldTypeName(type));
 }
示例#4
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);
            }
        }
示例#5
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);
        }
示例#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 (allowBlank)
            {
                json.WriteProperty("allowBlank", allowBlank);
            }

            base.ToJson(json);
        }
示例#8
0
        protected override void ToJson(LiteJsonWriter json)
        {
            if (children.Count > 0)
            {
                json.WriteProperty("entities", children);
            }
            else
            {
                json.WriteProperty("leaf", true);
            }

            //if (expanded) json.WriteProperty("expanded", expanded);

            if (!this.HasDynamicProperty)
            {
                this.SetProperty("e", "1");
            }

            base.ToJson(json);
        }
示例#9
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);
        }
示例#10
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);
        }
示例#11
0
 protected override void ToJson(LiteJsonWriter json)
 {
     json.WriteProperty(SuccessProperty, Success.Box());
     json.WritePropertyIf(MessageProperty, Message);
 }
示例#12
0
        protected override void ToJson(LiteJsonWriter json)
        {
            json.WriteProperty("text", ".");

            base.ToJson(json);
        }
示例#13
0
 protected override void ToJson(LiteJsonWriter json)
 {
     json.WriteProperty("model", ClientEntities.GetClientName(model));
     json.WriteProperty("total", total);
     json.WriteProperty("entities", entities);
 }
示例#14
0
 protected override void ToJson(LiteJsonWriter json)
 {
     json.WriteProperty("pageSize", pageSize);
 }
示例#15
0
 protected override void ToJson(LiteJsonWriter json)
 {
     json.WriteProperty("text", text);
     json.WriteProperty("value", value);
 }
示例#16
0
 protected override void ToJson(LiteJsonWriter json)
 {
     json.WriteProperty("model", model);
 }