Exemple #1
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);
                }
            }
        }
Exemple #2
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);
                }
            }
        }
Exemple #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);
                }
            }
        }
        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);
                }
            }
        }
        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);
                }
            }
        }
Exemple #6
0
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            FieldType obj = value as FieldType;

            if (obj != null)
            {
                writer.WriteStartObject();
                {
                    HelperJsonConverter.WritePropertyValue("$id", HelperJsonConverter.GetReferenceInternal(obj), writer, serializer);
                    HelperJsonConverter.WritePropertyType <FieldType>(writer, serializer, obj);
                    HelperJsonConverter.WritePropertyValue("CheckDigit", obj.CheckDigit, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("CheckStatus", obj.CheckStatus, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Description", obj.Description, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("EditionLengthMode", obj.EditionLengthMode, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("EntityStereotypeInternal", obj.EntityStereotypeInternal, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("FillMode", obj.FillMode, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Guid", obj.Guid, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("InputMask", obj.InputMask, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Length", obj.Length, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Name", obj.Name, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Stereotype", obj.Stereotype, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("TruncateType", obj.TruncateType, writer, serializer);
                }
            }
        }
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            Lov obj = value as Lov;

            if (obj != null)
            {
                HelperJsonConverter.WritePropertyReference("DisplayValue", obj.DisplayValue, writer, serializer);
                HelperJsonConverter.WritePropertyValue("Value", obj.Value, writer, serializer);
            }
        }
Exemple #8
0
        private void SerializeCollection(string combinedPath, string lastFolderName, IEnumerable <NameEntity> collection, string directory, string type)
        {
            string path = Path.Combine(combinedPath, directory);

            CheckAndCreateFolder(path, true);
            Stopwatch currentWatch  = Stopwatch.StartNew();
            int       counter       = 0;
            string    localizedType = type;
            int       total         = collection.Count();

            Parallel.ForEach(collection.OrderBy(x => x.Name), (element) =>
            {
                counter++;
                SerializeObject(Path.Combine(path, HelperJsonConverter.GetReferenceInternal(element)), element);
            });
        }
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            ViewField obj = value as ViewField;

            if (obj != null)
            {
                HelperJsonConverter.WritePropertyValue("$id", HelperJsonConverter.GetReferenceInternal(obj), writer, serializer);
                HelperJsonConverter.WritePropertyType <ViewField>(writer, serializer, obj);
                HelperJsonConverter.WritePropertyValue("AllowAdvancedSearch", obj.AllowAdvancedSearch, writer, serializer);
                HelperJsonConverter.WritePropertyValue("AllowEdit", obj.AllowEdit, writer, serializer);
                HelperJsonConverter.WritePropertyValue("AllowMassiveUpdate", obj.AllowMassiveUpdate, writer, serializer);
                HelperJsonConverter.WritePropertyValue("AllowMultiEdit", obj.AllowMultiEdit, writer, serializer);
                HelperJsonConverter.WritePropertyValue("AllowSearch", obj.AllowSearch, writer, serializer);
                HelperJsonConverter.WritePropertyValue("ColSpan", obj.ColSpan, writer, serializer);
                HelperJsonConverter.WritePropertyValue("DefaultValueCode", obj.DefaultValueCode, writer, serializer);
                HelperJsonConverter.WritePropertyObject <Link>("DrillDownLink", obj.DrillDownLink, writer, serializer);
                HelperJsonConverter.WritePropertyValue("EditableCondition", obj.EditableCondition, writer, serializer);
                HelperJsonConverter.WritePropertyValue("ImageFalseMode", obj.ImageFalseMode, writer, serializer);
                HelperJsonConverter.WritePropertyValue("ImageNameFalse", obj.ImageNameFalse, writer, serializer);
                HelperJsonConverter.WritePropertyValue("ImageNameTrue", obj.ImageNameTrue, writer, serializer);
                HelperJsonConverter.WritePropertyValue("ImageTrueMode", obj.ImageTrueMode, writer, serializer);
                HelperJsonConverter.WritePropertyValue("IsRequired", obj.IsRequired, writer, serializer);
                HelperJsonConverter.WritePropertyValue("IsVisible", obj.IsVisible, writer, serializer);
                HelperJsonConverter.WritePropertyValue("IsVisibleOnCreation", obj.IsVisibleOnCreation, writer, serializer);
                HelperJsonConverter.WritePropertyObject <ViewFieldLov>("Lov", obj.Lov, writer, serializer);
                HelperJsonConverter.WritePropertyValue("Name", obj.Name, writer, serializer);
                HelperJsonConverter.WritePropertyReference("Property", obj.Property, writer, serializer);
                HelperJsonConverter.WritePropertyValue("ReEvaluateVisibilityOnChange", obj.ReEvaluateVisibilityOnChange, writer, serializer);
                HelperJsonConverter.WritePropertyValue("RequiredCondition", obj.RequiredCondition, writer, serializer);
                HelperJsonConverter.WritePropertyValue("RowSpan", obj.RowSpan, writer, serializer);
                HelperJsonConverter.WritePropertyValue("SearchResource", obj.SearchResource, writer, serializer);
                HelperJsonConverter.WritePropertyValue("Sequence", obj.Sequence, writer, serializer);
                HelperJsonConverter.WritePropertyValue("ShowInCollapsedGrid", obj.ShowInCollapsedGrid, writer, serializer);
                HelperJsonConverter.WritePropertyValue("ShowInExpandedGrid", obj.ShowInCollapsedGrid, writer, serializer);
                HelperJsonConverter.WritePropertyReference("Title", obj.Title, writer, serializer);
                HelperJsonConverter.WritePropertyReference("Tooltip", obj.Tooltip, writer, serializer);
                HelperJsonConverter.WritePropertyValue("UseValueExpressionCode", obj.UseValueExpressionCode, writer, serializer);
                HelperJsonConverter.WritePropertyReference("Validator", obj.Validator, writer, serializer);
                HelperJsonConverter.WritePropertyValue("ValidatorCode", obj.ValidatorCode, writer, serializer);
                HelperJsonConverter.WritePropertyReference("ValidatorText", obj.ValidatorText, writer, serializer);
                HelperJsonConverter.WritePropertyValue("ValueExpressionCode", obj.ValueExpressionCode, writer, serializer);
                HelperJsonConverter.WritePropertyReference("ViewAdvancedSearch", obj.ViewAdvancedSearch, writer, serializer);
                HelperJsonConverter.WritePropertyValue("ViewAdvancedSearchCode", obj.ViewAdvancedSearchCode, writer, serializer);
                HelperJsonConverter.WritePropertyValue("ViewFieldType", obj.ViewFieldType, writer, serializer);
                HelperJsonConverter.WritePropertyValue("VisibilityCondition", obj.VisibilityCondition, writer, serializer);
            }
        }
        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);
                }
            }
        }
Exemple #11
0
        public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
        {
            RecordList obj = value as RecordList;

            if (obj != null)
            {
                writer.WriteStartObject();
                {
                    HelperJsonConverter.WritePropertyValue("$id", HelperJsonConverter.GetReferenceInternal(obj), writer, serializer);
                    HelperJsonConverter.WritePropertyType <RecordList>(writer, serializer, obj);
                    HelperJsonConverter.WritePropertyValue("CheckStatus", obj.CheckStatus, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Description", obj.Description, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Files", obj.Files, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Guid", obj.Guid, writer, serializer);
                    HelperJsonConverter.WritePropertyValue("Name", obj.Name, writer, serializer);
                    HelperJsonConverter.WritePropertyReference("Record", obj.Record, writer, serializer);
                }
            }
        }
Exemple #12
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);
                }
            }
        }
Exemple #14
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);
                }
            }
        }