/// <summary> /// Create the template output /// </summary> public virtual string TransformText() { #line 1 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" /* The MIT License (MIT) */ #line default #line hidden #line 2 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" /* Copyright (c) 1994-2021 The Sage Group plc or its licensors. All rights reserved. */ #line default #line hidden #line 3 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" /* */ #line default #line hidden #line 4 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" /* Permission is hereby granted, free of charge, to any person obtaining a copy of */ #line default #line hidden #line 5 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" /* this software and associated documentation files (the "Software"), to deal in */ #line default #line hidden #line 6 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" /* the Software without restriction, including without limitation the rights to use, */ #line default #line hidden #line 7 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" /* copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the */ #line default #line hidden #line 8 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" /* Software, and to permit persons to whom the Software is furnished to do so, */ #line default #line hidden #line 9 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" /* subject to the following conditions: */ #line default #line hidden #line 10 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" /* */ #line default #line hidden #line 11 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" /* The above copyright notice and this permission notice shall be included in all */ #line default #line hidden #line 12 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" /* copies or substantial portions of the Software. */ #line default #line hidden #line 13 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" /* */ #line default #line hidden #line 14 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, */ #line default #line hidden #line 15 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" /* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A */ #line default #line hidden #line 16 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" /* PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT */ #line default #line hidden #line 17 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" /* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF */ #line default #line hidden #line 18 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" /* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE */ #line default #line hidden #line 19 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" /* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #line default #line hidden #line 25 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" // Locals var entityName = view.Properties[BusinessView.Constants.EntityName]; var localEntityName = entityName.Substring(0, 1).ToLower() + entityName.Substring(1); var moduleId = view.Properties[BusinessView.Constants.ModuleId].ToLower(); var copyright = settings.Copyright; var snippet = new StringBuilder(); #line default #line hidden this.Write("/* "); #line 33 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" this.Write(this.ToStringHelper.ToStringWithCulture(copyright)); #line default #line hidden this.Write(" */\r\n\r\n// Enable the following commented line to enable TypeScript static type ch" + "ecking\r\n// @ts-check\r\n\r\n\"use strict\";\r\n\r\nvar "); #line 40 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" this.Write(this.ToStringHelper.ToStringWithCulture(localEntityName)); #line default #line hidden this.Write("KoExtn = "); #line 40 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" this.Write(this.ToStringHelper.ToStringWithCulture(localEntityName)); #line default #line hidden this.Write("KoExtn || {};\r\n\r\n"); #line 42 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" this.Write(this.ToStringHelper.ToStringWithCulture(localEntityName)); #line default #line hidden this.Write("KoExtn = {\r\n /**\r\n * @function \r\n * @name "); #line 45 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" this.Write(this.ToStringHelper.ToStringWithCulture(localEntityName)); #line default #line hidden this.Write("ReportExtension\r\n * @description Knockout extensions\r\n * @namespace "); #line 47 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" this.Write(this.ToStringHelper.ToStringWithCulture(localEntityName)); #line default #line hidden this.Write("KoExtn\r\n * @public \r\n * \r\n * @param model\r\n */\r\n \r\n "); #line 53 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" this.Write(this.ToStringHelper.ToStringWithCulture(localEntityName)); #line default #line hidden this.Write("ReportExtension: function (model) {\r\n \r\n // Computed Fields go here\r\n"); #line 56 "C:\Development\Branches\SDK\Sage300-SDK\src\wizards\CodeGenerationWizard\Templates\Reports\Script\KoExtn.tt" // Create disabled properties snippet = new StringBuilder(); SnippetHelper.DisabledPropertiesJavaScript(4, settings, snippet, view, localEntityName); if (!string.IsNullOrEmpty(snippet.ToString())) { WriteLine(snippet.ToString()); } #line default #line hidden this.Write(" },\r\n\r\n};"); return(this.GenerationEnvironment.ToString()); }