Skip to content

BEXIS2/ModuleTemplate

Repository files navigation

N|Solid

Module Template

This repo is a template for a BExIS2 module to extend the functionality of the system.

The template consists of 1 project and 3 libaries

Plugin README
BExIS.Modules.TEMPLATE.UI MVC UI project
BExIS.TEMPLATE.Entities Entities associated with the module
BExIS.TEMPLATE.Orm.NH Contains the nHibernate Mapping files to connect the tables with the entities in the database
BExIS.TEMPLATE.Services In this Libary all managers are deposited, which provide general functionalities for the Entities. eg create, update, delete

How to use

Precondition: Running BExIS2 Instance in visual Studio

  1. Download latest version
  2. Create a folder into BExIS2APP\Console\BExIS.Web.Shell\Areas and name it like your prefered MODULEID (only Characters) and copy the downloaded template into this folder
    • ..\Console\BExIS.Web.Shell\Areas\MODULEID\BExIS.Modules.TEMPLATE.UI
    • ..\Console\BExIS.Web.Shell\Areas\MODULEID\BExIS.TEMPLATE.Entities
    • ..\Console\BExIS.Web.Shell\Areas\MODULEID\BExIS.TEMPLATE.Orm.NH
    • ..\Console\BExIS.Web.Shell\Areas\MODULEID\BExIS.TEMPLATE.Services
  3. Run the ModuleTemplate_Renaming.ps1 with Power Shell to replace alle TEMPLATE with MODULEID in files and also filenames.
  4. Open the BExIS2 visual studio solution
  5. Create a ModuleId folder under the modules folder in the Solution
  6. Add the ui project and the libaries to that folder
  7. rebuild the BExIS.MODULEID.Orm.NH project and check wether the mapping files are exitsing in the workspace folder
    • ..\Workspace\Modules\MODULEID\Db\...
  8. Rebuild the web shell
  9. Add Module in the catalog Workspace\Modules\Modules.Catalog.xml
<?xml version="1.0" encoding="utf-8"?>
<Modules>
  ...
  <Module id="vim" status="active" order="8" />
  <Module id="MODULEID" status="pending" order="1" path="BExIS.Modules.MODULEID.UI"/>
</Modules>
  1. Run application
  2. After the application is loaded, the status of the module in the module.catalog.xml is set from pending to inactive. change this to active and the module is ready.

About

Template of a bexis 2 module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages