// ----------------------------------------------------------- // Called from: hdfBanner // ----------------------------------------------------------- function hdfWelcome(registry) { console.log("hdfWelcome registry: ", registry); if (registry.byId("hdmMainWelcomePane")) { var welcomePane = registry.byId("hdmMainWelcomePane"); registry.byId("hdmMainTabContainer").removeChild(welcomePane); welcomePane.destroyRecursive(false); return; } hdfWelcomeNew(registry); return; } // ----------------------------------------------------------- // hdfWelcomeNew: // ----------------------------------------------------------- function hdfWelcomeNew(registry) { require(["dojo/ready", "dijit/layout/ContentPane", "dojo/dom", "dojo/dom-construct","dojo/dom-style"], function(ready, ContentPane, dom, domConstruct, domStyle){ var welcomeDomNodeId = "hdmMainWelcomePane"; var tabdepth = registry.byId("hdmMainTabContainer").getChildren().length; var welcomePane = new ContentPane({ id: welcomeDomNodeId, title: "Welcome", closable: true }); welcomePane.domNode.id = welcomeDomNodeId; registry.byId("hdmMainTabContainer").addChild(welcomePane, tabdepth); registry.byId("hdmMainTabContainer").selectChild(welcomePane); hdfWelcomeTop(registry,welcomePane); //hdfWelcomeLeft(registry,welcomePane); //hdfWelcomeCenter(registry,welcomePane); //hdfWelcomeRight(registry,welcomePane); }); return; } // ----------------------------------------------------------- // hdfWelcomeTop: // ----------------------------------------------------------- function hdfWelcomeTop(registry, welcomePane) { require(["dojo/ready", "dijit/layout/ContentPane", "dojo/dom", "dojo/dom-construct"], function(ready, ContentPane, dom, domConstruct){ var topDomNodeId = welcomePane.domNode.id + "_top"; var topDomNode = domConstruct.create("div", {id: topDomNodeId}); //domConstruct.place(toolbarDomNode, dom.byId(mainTabDomNodeId)); var topPane = new ContentPane({ id: topDomNodeId, style: "height: 98%; width: 100%; " + //"background-image: url(../../../img/Hugmar/Image-20140413.png); " + "background-image: url(../../../img/SS/bg5.jpg); " + "background-repeat: no-repeat; background-position: center;", content: "" }, topDomNode); welcomePane.addChild(topPane); }); return; } // ----------------------------------------------------------- // hdfWelcomeLeft: // ----------------------------------------------------------- function hdfWelcomeLeft(registry, welcomePane) { require(["dojo/ready", "dijit/layout/ContentPane", "dojo/dom", "dojo/dom-construct"], function(ready, ContentPane, dom, domConstruct){ var leftDomNodeId = welcomePane.domNode.id + "_left"; var leftDomNode = domConstruct.create("div", {id: leftDomNodeId}); //domConstruct.place(toolbarDomNode, dom.byId(mainTabDomNodeId)); var leftPane = new ContentPane({ id: leftDomNodeId, style: "height: 88%; width: 33%; float: left", content: " " }, leftDomNode); welcomePane.addChild(leftPane); hdfWelcomeLeft1(leftPane); }); return; } // ----------------------------------------------------------- // hdfWelcomeLeft1: // ----------------------------------------------------------- function hdfWelcomeLeft1(leftPane) { require(["dojo/dom", "dojo/dom-construct", "dojo/domReady!"], function(dom, domConstruct){ var heading = domConstruct.toDom("

Hugmar Framework

"); var fragment = "

Hugmar Framework is an IBM i Integrated Language Environment (ILE), " + "cloud enabled programming methodology tool for state of the art open-source " + "Web Development Tools using industry accepted web standards.

"; var domText = domConstruct.toDom(fragment); domConstruct.place(heading, leftPane.domNode); domConstruct.place(domText, leftPane.domNode); // Architecture var heading = domConstruct.toDom("

Architecture

"); var fragment = "Hugmar Framework embraces the Model-View-Controller software architectural patterns, " + "and integrates seamlessly with most modern open-source Web Development Frameworks. " + "The default open-source framework used is the Dojo Toolkit. " + "Hugmar Framework is mostly written in ILE-RPG and uses many advanced RPG language features " + "such as IBM API's to access System Functions, Integrated File System, Data Queues, " + "User Spaces, SQL-Call Level Interface, HTTP for Web Access and wrappers for Java. " + "Hugmar encourages current IBM programming practices for ILE applications such as the Rational Tools, " + "and has many practical examples of how to develop modern advanced RPG applications. "; var domText = domConstruct.toDom(fragment); domConstruct.place(heading, leftPane.domNode); domConstruct.place(domText, leftPane.domNode); // Architecture Continued var solutionList = domConstruct.toDom(""); domConstruct.place(solutionList, leftPane.domNode); var fragment = "
  • Model: ILE objects that run inside jobs in dedicated subsystems on the IBM i " + "and consists of Hugmar Web Server Controller and Service Programs with several API system interfaces. " + "A compiled ILE program developed by the user is bound to the Hugmar Service Program.
  • " + "
  • View: The default client is cloud based version of the open-source Dojo Toolkit. " + "The open-source functions can either be executed from the IFS or the cloud, " + "depending on user preference.
  • " + "
  • Controller: The middleware that all the communications between client and server flow through is the " + "IBM HTTP server, subsystem QHTTPSVR, which is included default in all installations of the IBM i, " + "embedded with additional Hugmar service functions that include both JSON and XML parsers. " + "The default message format is JSON.
  • "; var domText = domConstruct.toDom(fragment); domConstruct.place(domText, solutionList); // Competitive Positioning var heading = domConstruct.toDom("

    Competitive Positioning

    "); var fragment = "Hugmar Framework is a uniquely positioned tool that enables the IBM ILE developer to take advantage " + "of state of the art open-source Web Development Tools using industry accepted web standards. " + "Hugmar has many practical examples of how to write a modern RPG programs. " + "It guides the established RPG programmer in how to use many advanced RPG language features " + "such as IBM APIs to access System Functions, Integrated File System, Data Queues, User Spaces, " + "and HTTP for Web Access and wrappers for Java. " + "Hugmar encourages current IBM programming practices for ILE applications such as the Rational Tools. "; var domText = domConstruct.toDom(fragment); domConstruct.place(heading, leftPane.domNode); domConstruct.place(domText, leftPane.domNode); }); return; } // ----------------------------------------------------------- // hdfWelcomeCenter: // ----------------------------------------------------------- function hdfWelcomeCenter(registry, welcomePane) { require(["dojo/ready", "dijit/layout/ContentPane", "dojo/dom", "dojo/dom-construct"], function(ready, ContentPane, dom, domConstruct){ var centerDomNodeId = welcomePane.domNode.id + "_center"; var centerDomNode = domConstruct.create("div", {id: centerDomNodeId}); var centerPane = new ContentPane({ id: centerDomNodeId, style: "height: 88%; width: 33%; float: left", content: " " }, centerDomNode); welcomePane.addChild(centerPane); hdfWelcomeCenter1(centerPane); }); return; } // ----------------------------------------------------------- // hdfWelcomeCenter1: // ----------------------------------------------------------- function hdfWelcomeCenter1(centerPane) { require(["dojo/dom", "dojo/dom-construct", "dojo/domReady!"], function(dom, domConstruct){ // Profiles var heading = domConstruct.toDom("

    Center Pane

    "); domConstruct.place(heading, centerPane.domNode); var image = "Throstur"; var domImage = domConstruct.toDom(image); domConstruct.place(domImage, centerPane.domNode); var text = "

    Throstur Gudmundsson is the founder of Hugmar Enterprises Inc, ...

    "; var domText = domConstruct.toDom(text); domConstruct.place(domText, centerPane.domNode); }); return; } // ----------------------------------------------------------- // hdfWelcomeRight: // ----------------------------------------------------------- function hdfWelcomeRight(registry, welcomePane) { require(["dojo/ready", "dijit/layout/ContentPane", "dojo/dom", "dojo/dom-construct"], function(ready, ContentPane, dom, domConstruct){ var rightDomNodeId = welcomePane.domNode.id + "_right"; var rightDomNode = domConstruct.create("div", {id: rightDomNodeId}); //domConstruct.place(toolbarDomNode, dom.byId(mainTabDomNodeId)); var rightPane = new ContentPane({ id: rightDomNodeId, style: "height: 88%; width: 33%; float: right", content: " " }, rightDomNode); welcomePane.addChild(rightPane); hdfWelcomeRight1(rightPane); }); return; } // ----------------------------------------------------------- // hdfWelcomeRight1: // ----------------------------------------------------------- function hdfWelcomeRight1(rightPane) { require(["dojo/dom", "dojo/dom-construct", "dojo/domReady!"], function(dom, domConstruct){ // Profiles var heading = domConstruct.toDom("

    Profiles

    "); domConstruct.place(heading, rightPane.domNode); var image = "Throstur"; var domImage = domConstruct.toDom(image); domConstruct.place(domImage, rightPane.domNode); var text = "

    Throstur Gudmundsson is the founder of Hugmar Enterprises Inc, " + "that specializes in software products and consulting for the IBM i. " + "He is the designer and lead developer of all the Hugmar products. " + "He has keen interest in development methodologies, " + "and especially how they apply to the IBM i and Open-Source. " + "From the early days of SAA-CUA all the way to the modern browser, " + "Throstur has successfully developed and implemented tools to make DB2 " + "based software better and more efficient.

    "; var domText = domConstruct.toDom(text); domConstruct.place(domText, rightPane.domNode); // Technologies var heading = domConstruct.toDom("

    Technologies

    "); var fragment = "

    "; var domText = domConstruct.toDom(fragment); domConstruct.place(heading, rightPane.domNode); domConstruct.place(domText, rightPane.domNode); }); return; }