public static void Write(this RequestForm requestForm, CSideWriter writer) { if (writer.CodeStyle.DoNotPrintEmptyRequestForm) { if (!requestForm.Controls.Any() && !requestForm.Properties.Any(p => p.HasValue)) { return; } } writer.BeginSection("REQUESTFORM"); writer.BeginSection("PROPERTIES"); requestForm.Properties.Write(PropertiesStyle.Object, writer); writer.EndSection(); requestForm.Controls.Write(writer, 51); writer.EndSection(); }
public static void Write(this MenuSuite menuSuite, CSideWriter writer) { writer.BeginSection(menuSuite.GetObjectSignature()); menuSuite.ObjectProperties.Write(writer); menuSuite.Properties.Write(writer); menuSuite.Nodes.Write(writer); writer.EndSection(); }
public static void Write(this Codeunit codeunit, CSideWriter writer) { writer.BeginSection(codeunit.GetObjectSignature()); codeunit.ObjectProperties.Write(writer); codeunit.Properties.Write(writer); codeunit.Code.Write(writer); writer.EndSection(); writer.InnerWriter.WriteLine(); }
public static void Write(this ObjectProperties objectProperties, CSideWriter writer) { writer.BeginSection("OBJECT-PROPERTIES"); writer.WriteLineIf(objectProperties.DateTime.HasValue, "Date={0};", objectProperties.DateTime.ToShortDateString()); writer.WriteLineIf(objectProperties.DateTime.HasValue, "Time={0};", objectProperties.DateTime.ToShortTimeString()); writer.WriteLineIf(objectProperties.Modified, "Modified=Yes;"); writer.WriteLineIf(objectProperties.VersionList != null, "Version List={0};", objectProperties.VersionList); writer.EndSection(); }
public static void Write(this Code code, CSideWriter writer) { writer.BeginSection("CODE"); code.Variables.Write(writer); code.Functions.Write(writer); code.Events.Write(writer); code.Documentation.Write(writer); writer.EndSection(); }
public static void Write(this Form form, CSideWriter writer) { writer.BeginSection(form.GetObjectSignature()); form.ObjectProperties.Write(writer); form.Properties.Write(writer); form.Controls.Write(writer, 49); form.Code.Write(writer); writer.EndSection(); writer.InnerWriter.WriteLine(); }
public static void Write(this Query query, CSideWriter writer) { writer.BeginSection(query.GetObjectSignature()); query.ObjectProperties.Write(writer); query.Properties.Write(writer); query.Elements.Write(writer); query.Code.Write(writer); writer.EndSection(); writer.InnerWriter.WriteLine(); }
public static void Write(this Page page, CSideWriter writer) { writer.BeginSection(page.GetObjectSignature()); page.ObjectProperties.Write(writer); page.Properties.Write(writer); page.Controls.Write(writer, 16); page.Code.Write(writer); writer.EndSection(); writer.InnerWriter.WriteLine(); }
public static void Write(this MenuSuiteNodes nodes, CSideWriter writer) { writer.BeginSection("MENUNODES"); foreach (var node in nodes) { node.Write(writer); } writer.EndSection(); }
public static void Write(this FormControls formControls, CSideWriter writer, int propertyIndentation) { writer.BeginSection("CONTROLS"); foreach (var formControl in formControls) { formControl.Write(writer, propertyIndentation); } writer.EndSection(); }
public static void Write(this XmlPortNodes xmlPortNodes, CSideWriter writer) { writer.BeginSection("ELEMENTS"); foreach (var xmlPortNode in xmlPortNodes) { xmlPortNode.Write(writer); } writer.EndSection(); }
public static void Write(this TableFieldGroups tableFieldGroups, CSideWriter writer) { writer.BeginSection("FIELDGROUPS"); foreach (var tableFieldGroup in tableFieldGroups) { tableFieldGroup.Write(writer); } writer.EndSection(); }
public static void Write(this ReportLabels reportLabels, CSideWriter writer) { writer.BeginSection("LABELS"); foreach (var reportLabel in reportLabels) { reportLabel.Write(writer); } writer.EndSection(); }
public static void Write(this DataportFields dataportFields, CSideWriter writer) { writer.BeginSection("FIELDS"); foreach (var dataportField in dataportFields) { dataportField.Write(writer, 43); } writer.EndSection(); }
public static void Write(this QueryElements queryElements, CSideWriter writer) { writer.BeginSection("ELEMENTS"); foreach (var queryElement in queryElements) { queryElement.Write(writer); } writer.EndSection(); }
public static void Write(this DataportDataItem dataportDataItem, CSideWriter writer) { writer.Write("{ "); writer.Indent(); writer.BeginSection("PROPERTIES"); dataportDataItem.Properties.Write(PropertiesStyle.Object, writer); writer.EndSection(); dataportDataItem.Fields.Write(writer); writer.WriteLine(" }"); writer.Unindent(); }
public static void Write(this SectionBase reportDataItemSection, CSideWriter writer) { writer.Write("{ "); writer.Indent(); writer.BeginSection("PROPERTIES"); reportDataItemSection.AllProperties.Where(p => p.HasValue).Write(PropertiesStyle.Object, writer); writer.EndSection(); reportDataItemSection.Controls.Write(writer, 58); writer.WriteLine(" }"); writer.Unindent(); }
public static void Write(this ReportElements reportElements, CSideWriter writer) { writer.BeginSection("DATASET"); foreach (var reportElement in reportElements) { reportElement.Write(writer); } writer.EndSection(); }
public static void Write(this TableFields tableFields, CSideWriter writer) { writer.BeginSection("FIELDS"); foreach (TableField tableField in tableFields.OrderBy(f => f.ID)) { tableField.Write(writer); } writer.EndSection(); }
public static void Write(this TableKeys tableKeys, CSideWriter writer) { writer.BeginSection("KEYS"); foreach (var tableKey in tableKeys) { tableKey.Write(writer); } writer.EndSection(); }
public static void Write(this Dataport dataport, CSideWriter writer) { writer.BeginSection(dataport.GetObjectSignature()); dataport.ObjectProperties.Write(writer); dataport.Properties.Write(writer); dataport.DataItems.Write(writer); dataport.RequestForm.Write(writer); dataport.Code.Write(writer); writer.EndSection(); writer.InnerWriter.WriteLine(); }
public static void Write(this XmlPort xmlPort, CSideWriter writer) { writer.BeginSection(xmlPort.GetObjectSignature()); xmlPort.ObjectProperties.Write(writer); xmlPort.Properties.Write(writer); xmlPort.Nodes.Write(writer); WriteEvents(writer); xmlPort.RequestPage.Write(writer); xmlPort.Code.Write(writer); writer.EndSection(); writer.InnerWriter.WriteLine(); }
public static void Write(this Table table, CSideWriter writer) { writer.BeginSection(table.GetObjectSignature()); table.ObjectProperties.Write(writer); table.Properties.Write(writer); table.Fields.Write(writer); table.Keys.Write(writer); table.FieldGroups.Write(writer); table.Code.Write(writer); writer.EndSection(); writer.InnerWriter.WriteLine(); }
public static void Write(this RequestPage requestPage, CSideWriter writer) { writer.BeginSection("REQUESTPAGE"); requestPage.Properties.Write(PropertiesStyle.Object, writer); #if NAV2017 requestPage.Controls.Write(writer, 18); #else requestPage.Controls.Write(writer, 16); #endif writer.EndSection(); }
public static void Write(this XmlPortProperties xmlPortProperties, CSideWriter writer) { writer.BeginSection("PROPERTIES"); var relevantProperties = xmlPortProperties.Where(p => p.HasValue); foreach (Property property in relevantProperties) { // For XmlPorts, even the last relevant property ends with a semicolon property.Write(false, PropertiesStyle.Object, writer); } writer.EndSection(); }
public static void Write(this QueryProperties queryProperties, CSideWriter writer) { writer.BeginSection("PROPERTIES"); var relevantProperties = queryProperties.Where(p => p.HasValue); foreach (Property property in relevantProperties) { var isLastProperty = (property == relevantProperties.Last()); property.Write(isLastProperty, PropertiesStyle.Object, writer); } writer.EndSection(); }
public static void Write(this ObjectProperties objectProperties, CSideWriter writer) { writer.BeginSection("OBJECT-PROPERTIES"); var dateFieldName = writer.CodeStyle.CustomPropertyMappings.GetDisplayName("Date"); var timeFieldName = writer.CodeStyle.CustomPropertyMappings.GetDisplayName("Time"); var modifiedFieldName = writer.CodeStyle.CustomPropertyMappings.GetDisplayName("Modified"); var versionListFieldName = writer.CodeStyle.CustomPropertyMappings.GetDisplayName("Version List"); writer.WriteLineIf(objectProperties.DateTime.HasValue, "{1}={0};", objectProperties.HasDateComponent? objectProperties.DateTime.ToShortDateString(writer.CodeStyle.Localization) : "", dateFieldName); writer.WriteLineIf(objectProperties.DateTime.HasValue, "{1}={0};", objectProperties.HasTimeComponent? objectProperties.DateTime.ToShortTimeString(writer.CodeStyle.Localization, writer.CodeStyle.UseEnclosedTimeFormat) : "", timeFieldName); writer.WriteLineIf(objectProperties.Modified, "{1}={0};", writer.CodeStyle.Localization.ConvertBoolToString(true), modifiedFieldName); writer.WriteLineIf(objectProperties.VersionList != null, "{1}={0};", objectProperties.VersionList, versionListFieldName); writer.EndSection(); }
public static void Write(this Sections reportDataItemSections, CSideWriter writer) { writer.BeginSection("SECTIONS"); if (reportDataItemSections != null) { foreach (var reportDataItemSection in reportDataItemSections) { reportDataItemSection.Write(writer); } } writer.EndSection(); }
public static void Write(this WordLayout wordLayout, CSideWriter writer) { if (wordLayout.CodeLines.Any()) { writer.BeginSection("WORDLAYOUT"); foreach (var line in wordLayout.CodeLines) { writer.WriteLine(line); } writer.InnerWriter.WriteLine(" END_OF_WORDLAYOUT"); writer.EndSection(); } }
public static void Write(this RdlData rdlData, CSideWriter writer) { writer.BeginSection("RDLDATA"); if (rdlData.CodeLines.Any()) { foreach (var line in rdlData.CodeLines) { writer.InnerWriter.WriteLine(line); } writer.InnerWriter.WriteLine(" END_OF_RDLDATA"); } writer.EndSection(); }