public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            WorkflowCommand obj = value as WorkflowCommand;

            if (obj != null)
            {
                writer.WriteStartObject();
                {
                    HelperJsonConverter.WritePropertyValue("$id", HelperJsonConverter.GetReferenceInternal(obj), writer, serializer);
                    HelperJsonConverter.WritePropertyType <WorkflowCommand>(writer, serializer, obj);
                    HelperJsonConverter.WritePropertyObjectsArray("FormalParametersInternal", typeof(List <WorkflowFormalParameter>), obj.FormalParametersInternal, (objchild) =>
                    {
                        HelperJsonConverter.WritePropertyReference("Attribute", objchild.Attribute, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Description", objchild.Description, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("EntityStereotypeInternal", objchild.EntityStereotypeInternal, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Index", objchild.Index, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("IsEditableParameter", objchild.IsEditableParameter, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("IsRequiredParameter", objchild.IsRequiredParameter, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Mode", objchild.Mode, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Name", objchild.Name, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Stereotype", objchild.Stereotype, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("WorkflowFormalParameterType", objchild.WorkflowFormalParameterType, writer, serializer);
                    }, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("CheckStatus", obj.CheckStatus, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Description", obj.Description, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("InternalCommandName", obj.InternalCommandName, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Name", obj.Name, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("VersionId", obj.VersionId, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("WorkflowCommandType", obj.WorkflowCommandType, writer, serializer);
                }
            }
        }
예제 #2
0
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            ViewGrid obj = value as ViewGrid;

            if (obj != null)
            {
                writer.WriteStartObject();
                {
                    HelperJsonConverter.WritePropertyValue("$id", HelperJsonConverter.GetReferenceInternal(obj), writer, serializer);
                    HelperJsonConverter.WritePropertyType <ViewGrid>(writer, serializer, obj);
                    HelperJsonConverter.WritePropertyValue("ColCount", obj.ColCount, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("ColSpan", obj.ColSpan, writer, serializer);
                    HelperJsonConverter.WritePropertyObjectsArray("FieldsInternal", typeof(List <ViewField>), obj.FieldsInternal, (objchild) =>
                    {
                        serializer.Serialize(writer, objchild);
                    }, writer, serializer);

                    //ForeignFiltersInternal

                    HelperJsonConverter.WritePropertyValue("Name", obj.Name, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("RowCount", obj.RowCount, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("RowSpan", obj.RowSpan, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Sequence", obj.Sequence, writer, serializer);
                    HelperJsonConverter.WritePropertyReference("Title", obj.Title, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("VisibilityCondition", obj.VisibilityCondition, writer, serializer);
                }
            }
        }
예제 #3
0
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            ViewPanelPage obj = value as ViewPanelPage;

            if (obj != null)
            {
                writer.WriteStartObject();
                {
                    HelperJsonConverter.WritePropertyValue("$id", HelperJsonConverter.GetReferenceInternal(obj), writer, serializer);
                    HelperJsonConverter.WritePropertyType <ViewPanelPage>(writer, serializer, obj);
                    HelperJsonConverter.WritePropertyValue("ColCount", obj.ColCount, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("ColSpan", obj.ColSpan, writer, serializer);

                    HelperJsonConverter.WritePropertyObjectsArray("ControlsInternal", typeof(List <ViewControl>), obj.ControlsInternal, (objchild) =>
                    {
                    }, writer, serializer);

                    HelperJsonConverter.WritePropertyValue("DefaultPage", obj.DefaultPage, writer, serializer);

                    HelperJsonConverter.WritePropertyObjectsArray("FieldsInternal", typeof(List <ViewField>), obj.FieldsInternal, (objchild) =>
                    {
                    }, writer, serializer);

                    HelperJsonConverter.WritePropertyValue("Name", obj.Name, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("PageNumber", obj.PageNumber, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Sequence", obj.Sequence, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("RowCount", obj.RowCount, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("RowSpan", obj.RowSpan, writer, serializer);
                    HelperJsonConverter.WritePropertyReference("Title", obj.Title, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("VisibilityCondition", obj.VisibilityCondition, writer, serializer);
                }
            }
        }
예제 #4
0
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            Record obj = value as Record;

            if (obj != null)
            {
                writer.WriteStartObject();
                {
                    HelperJsonConverter.WritePropertyValue("$id", HelperJsonConverter.GetReferenceInternal(obj), writer, serializer);
                    HelperJsonConverter.WritePropertyType <Record> (writer, serializer, obj);
                    HelperJsonConverter.WritePropertyValue("AutoUpdateLength", obj.AutoUpdateLength, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("CheckStatus", obj.CheckStatus, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Description", obj.Description, writer, serializer);
                    HelperJsonConverter.WritePropertyObjectsArray("FieldRecordsInternal", typeof(List <FieldRecord>), obj.FieldRecordsInternal, (fieldrecord) =>
                    {
                        HelperJsonConverter.WritePropertyValue("End", fieldrecord.End, writer, serializer);
                        HelperJsonConverter.WritePropertyReference("FieldType", fieldrecord.FieldType, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Format", fieldrecord.Format, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Guid", fieldrecord.Guid, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Length", fieldrecord.Length, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Name", fieldrecord.Name, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Start", fieldrecord.Start, writer, serializer);
                    }, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Guid", obj.Guid, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Name", obj.Name, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("RecordType", obj.RecordType, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Separator", obj.Separator, writer, serializer);
                }
            }
        }
예제 #5
0
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            Event obj = value as Event;

            if (obj != null)
            {
                writer.WriteStartObject();
                {
                    HelperJsonConverter.WritePropertyValue("$id", HelperJsonConverter.GetReferenceInternal(obj), writer, serializer);
                    HelperJsonConverter.WritePropertyType <Event>(writer, serializer, obj);
                    HelperJsonConverter.WritePropertyValue("CheckStatus", obj.CheckStatus, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Description", obj.Description, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("InternalName", obj.InternalName, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("IsPublic", obj.IsPublic, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Name", obj.Name, writer, serializer);
                    HelperJsonConverter.WritePropertyObjectsArray("PropertiesInternal", typeof(List <EventProperty>), obj.PropertiesInternal, (objchild) =>
                    {
                        HelperJsonConverter.WritePropertyValue("DataType", objchild.DataType, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Description", objchild.Description, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Name", objchild.Name, writer, serializer);
                    }, writer, serializer);

                    HelperJsonConverter.WritePropertyValue("VersionId", obj.VersionId, writer, serializer);
                }
            }
        }
예제 #6
0
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            Entity obj = value as Entity;

            if (obj != null)
            {
                writer.WriteStartObject();
                {
                    HelperJsonConverter.WritePropertyValue("$id", HelperJsonConverter.GetReferenceInternal(obj), writer, serializer);
                    HelperJsonConverter.WritePropertyType <Entity>(writer, serializer, obj);
                    HelperJsonConverter.WritePropertyValue("CheckStatus", obj.CheckStatus, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Description", obj.Description, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("FromMetadata", obj.FromMetadata, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Guid", obj.Guid, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("IsDataWarehouse", obj.IsDataWarehouse, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("IsNew", obj.IsNew, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Name", obj.Name, writer, serializer);
                    HelperJsonConverter.WritePropertyReference("PluralName", obj.PluralName, writer, serializer);

                    HelperJsonConverter.WritePropertyObjectsArray("PropertiesInternal", typeof(List <Property>), obj.PropertiesInternal, (objchild) =>
                    {
                        HelperJsonConverter.WritePropertyValue("ColumnName", objchild.ColumnName, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("DataType", objchild.DataType, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("DefaultValue", objchild.DefaultValue, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Guid", objchild.Guid, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Help", objchild.Help, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("IsActiveProperty", objchild.IsActiveProperty, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("IsCustomField", objchild.IsCustomField, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("IsDataWarehouse", objchild.IsDataWarehouse, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("IsIndex", objchild.IsIndex, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("IsPrimaryKey", objchild.IsPrimaryKey, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("IsReadOnly", objchild.IsReadOnly, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("IsRequiered", objchild.IsRequiered, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("IsVisible", objchild.IsVisible, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Lenght", objchild.Lenght, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Name", objchild.Name, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Precision", objchild.Precision, writer, serializer);
                        HelperJsonConverter.WritePropertyReference("Title", objchild.Title, writer, serializer);
                        HelperJsonConverter.WritePropertyReference("Validator", objchild.Validator, writer, serializer);
                    }, writer, serializer);

                    HelperJsonConverter.WritePropertyReference("SingularName", obj.SingularName, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("TableName", obj.TableName, writer, serializer);
                }
            }
        }
예제 #7
0
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            Link obj = value as Link;

            if (obj != null)
            {
                writer.WriteStartObject();
                {
                    HelperJsonConverter.WritePropertyValue("$id", HelperJsonConverter.GetReferenceInternal(obj), writer, serializer);
                    HelperJsonConverter.WritePropertyType <Link>(writer, serializer, obj);
                    HelperJsonConverter.WritePropertyValue("ExpressionCode", obj.ExpressionCode, writer, serializer);
                    HelperJsonConverter.WritePropertyObjectsArray("LinkParametersInternal", typeof(List <LinkParameter>), obj.LinkParametersInternal, (objparams) =>
                    {
                        HelperJsonConverter.WritePropertyValue("Expression", objparams.Expression, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("ViewParameterInternal", objparams.ViewParameterInternal, writer, serializer);
                    }, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("TargetViewInternal", obj.TargetViewInternal, writer, serializer);
                    HelperJsonConverter.WritePropertyReference("TargetViewProperty", obj.TargetViewProperty, writer, serializer);
                }
            }
        }
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            ViewFieldLov obj = value as ViewFieldLov;

            if (obj != null)
            {
                writer.WriteStartObject();
                {
                    HelperJsonConverter.WritePropertyValue("$id", HelperJsonConverter.GetReferenceInternal(obj), writer, serializer);
                    HelperJsonConverter.WritePropertyType <ViewFieldLov>(writer, serializer, obj);
                    HelperJsonConverter.WritePropertyReference("DependantProperty", obj.DependantProperty, writer, serializer);
                    HelperJsonConverter.WritePropertyReference("DependantViewFieldLOV", obj.DependantViewFieldLOV, writer, serializer);
                    HelperJsonConverter.WritePropertyReference("DisplayProperty", obj.DisplayProperty, writer, serializer);
                    HelperJsonConverter.WritePropertyReference("EntityInternal", obj.EntityInternal, writer, serializer);
                    HelperJsonConverter.WritePropertyObject <Link>("InLineLink", obj.InLineLink, writer, serializer);
                    HelperJsonConverter.WritePropertyObjectsArray("LovsInternal", typeof(List <Lov>), obj.LovsInternal, (objchild) =>
                    {
                        serializer.Serialize(writer, objchild);
                    }, writer, serializer);


                    HelperJsonConverter.WritePropertyValue("OrderLovType", obj.OrderLovType, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("RowLimit", obj.RowLimit, writer, serializer);
                    HelperJsonConverter.WritePropertyValuesArray("ShowPropertiesInternal", typeof(List <Guid>), obj.ShowPropertiesInternal, (objchild) =>
                    {
                        writer.WriteStartObject();
                        HelperJsonConverter.WritePropertyValue("$ref", objchild, writer, serializer);
                        writer.WriteEnd();
                    }, writer, serializer);


                    HelperJsonConverter.WritePropertyValue("SqlOrderBy", obj.SqlOrderBy, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("SqlWhere", obj.SqlWhere, writer, serializer);
                    HelperJsonConverter.WritePropertyReference("ValueProperty", obj.ValueProperty, writer, serializer);
                }
            }
        }
예제 #9
0
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            WorkflowUICommand obj = value as WorkflowUICommand;

            if (obj != null)
            {
                writer.WriteStartObject();
                {
                    HelperJsonConverter.WritePropertyValue("$id", HelperJsonConverter.GetReferenceInternal(obj), writer, serializer);
                    HelperJsonConverter.WritePropertyType <WorkflowUICommand>(writer, serializer, obj);
                    HelperJsonConverter.WritePropertyObjectsArray("FormatsInternal", typeof(List <WorkflowUICommandFormat>), obj.FormatsInternal, (objchild) =>
                    {
                        HelperJsonConverter.WritePropertyValue("Height", objchild.Height, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("IsDefault", objchild.IsDefault, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Name", objchild.Name, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("UIXml", objchild.UIXml, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Width", objchild.Width, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("WorkflowUICommandFormatType", objchild.WorkflowUICommandFormatType, writer, serializer);
                    }, writer, serializer);
                    HelperJsonConverter.WritePropertyObjectsArray("FormalParametersInternal", typeof(List <WorkflowFormalParameter>), obj.FormalParametersInternal, (objchild) =>
                    {
                        HelperJsonConverter.WritePropertyReference("Attribute", objchild.Attribute, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Description", objchild.Description, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("EntityStereotypeInternal", objchild.EntityStereotypeInternal, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Index", objchild.Index, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("IsEditableParameter", objchild.IsEditableParameter, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("IsRequiredParameter", objchild.IsRequiredParameter, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Mode", objchild.Mode, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Name", objchild.Name, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Stereotype", objchild.Stereotype, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("WorkflowFormalParameterType", objchild.WorkflowFormalParameterType, writer, serializer);
                    }, writer, serializer);
                    HelperJsonConverter.WritePropertyValuesArray("OptionsInternal", typeof(List <string>), obj.OptionsInternal, (objchild) =>
                    {
                        writer.WriteValue(objchild);
                    }, writer, serializer);
                    HelperJsonConverter.WritePropertyObjectsArray("ListsInternal", typeof(List <WorkflowUICommandList>), obj.ListsInternal, (objchild) =>
                    {
                        HelperJsonConverter.WritePropertyReference("DefaultValueParameterName", objchild.DefaultValueParameterName, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("Name", objchild.Name, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("NavigationAllowsNullSelection", objchild.NavigationAllowsNullSelection, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("NavigationNextOptionInternal", objchild.NavigationNextOptionInternal, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("NavigationNextPageOptionInternal", objchild.NavigationNextPageOptionInternal, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("NavigationNullSelectionText", objchild.NavigationNullSelectionText, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("NavigationOptionsExitsDialog", objchild.NavigationOptionsExitsDialog, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("NavigationPreviousOptionInternal", objchild.NavigationPreviousOptionInternal, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("NavigationPreviousPageOptionInternal", objchild.NavigationPreviousPageOptionInternal, writer, serializer);
                        HelperJsonConverter.WritePropertyReference("SelectedValueParameterName", objchild.SelectedValueParameterName, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("SelectOptionDisplayLabelText", objchild.SelectOptionDisplayLabelText, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("SelectOptionDisplayProperty", objchild.SelectOptionDisplayProperty, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("SelectOptionExitDialogOptionInternal", objchild.SelectOptionExitDialogOptionInternal, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("SelectOptionExitsDialog", objchild.SelectOptionExitsDialog, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("SelectOptionInternal", objchild.SelectOptionInternal, writer, serializer);
                        HelperJsonConverter.WritePropertyValue("SelectOptionOnlyList", objchild.SelectOptionOnlyList, writer, serializer);
                    }, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("CheckStatus", obj.CheckStatus, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Description", obj.Description, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("IsSelector", obj.IsSelector, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Name", obj.Name, writer, serializer);
                    HelperJsonConverter.WritePropertyReference("SelectorList", obj.SelectorList, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("ShowPromptDefaultValue", obj.ShowPromptDefaultValue, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("VersionId", obj.VersionId, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("WorkflowUICommandEditionKind", obj.WorkflowUICommandEditionKind, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("WorkflowUICommandPromptTypeInternal", obj.WorkflowUICommandPromptTypeInternal, writer, serializer);
                }
            }
        }