Skip to content
Snippets Groups Projects
Commit c1ef978e authored by Maximilian Schröger's avatar Maximilian Schröger
Browse files

Merge branch 'master' of gitlab.adito.de:xrm/basic

# Conflicts:
#	entity/Salesproject_entity/Salesproject_entity.aod
parents 1f3e7df5 48762239
No related branches found
No related tags found
No related merge requests found
Showing
with 13241 additions and 0 deletions
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="j.hoermann" id="1df96464-abff-4a3c-b52c-759d073a9a7a">
<createTable tableName="SALESPROJECT_FORECAST">
<column name="SALESPROJECT_FORECASTID" type="CHAR(36)">
<constraints primaryKey="true" primaryKeyName="PK_SALESPROJECT_FORECAST_SALESPROJECT_FORECASTID"/>
</column>
<column name="SALESPROJECT_ID" type="CHAR(36)">
<constraints nullable="false"/>
</column>
<column name="RELATION_ID" type="CHAR(36)">
<constraints nullable="false"/>
</column>
<column name="GROUPCODE" type="INTEGER"/>
<column name="INFO" type="NCLOB"/>
<column name="DATE_START" type="TIMESTAMP"/>
<column name="TYPE" type="VARCHAR(10)"/>
<column name="VOLUME" type="INTEGER"/>
<column name="USER_EDIT" type="VARCHAR(50)"/>
<column name="USER_NEW" type="VARCHAR(50)">
<constraints nullable="false"/>
</column>
<column name="DATE_NEW" type="TIMESTAMP">
<constraints nullable="false"/>
</column>
<column name="DATE_EDIT" type="TIMESTAMP"/>
</createTable>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="j.hoermann" id="7019c00e-0501-4b25-b20b-ece3abcc9cfd">
<createTable tableName="SALESPROJECT_MEMBER">
<column name="SALESPROJECT_MEMBERID" type="CHAR(36)">
<constraints primaryKey="true" primaryKeyName="PK_SALESPROJECT_MEMBER_SALESPROJECT_MEMBERID"/>
</column>
<column name="SALESPROJECT_ID" type="CHAR(36)">
<constraints nullable="false"/>
</column>
<column name="RELATION_ID" type="CHAR(36)">
<constraints nullable="false"/>
</column>
<column name="SALESPROJECT_ROLE" type="INTEGER"/>
<column name="USER_EDIT" type="VARCHAR(50)"/>
<column name="USER_NEW" type="VARCHAR(50)">
<constraints nullable="false"/>
</column>
<column name="DATE_NEW" type="TIMESTAMP">
<constraints nullable="false"/>
</column>
<column name="DATE_EDIT" type="TIMESTAMP"/>
</createTable>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd">
<changeSet author="j.hoermann" id="806bee79-e178-4e35-9cb5-4bd9dc8ce6ae">
<createTable tableName="SALESPROJECT_SOURCE">
<column name="SALESPROJECT_SOURCEID" type="CHAR(36)">
<constraints primaryKey="true" primaryKeyName="PK_SALESPROJECT_SOURCE_SALESPROJECT_SOURCEID"/>
</column>
<column name="ENTRYDATE" type="TIMESTAMP"/>
<column name="INFO" type="NCLOB"/>
<column name="SALESPROJECT_ID" type="CHAR(36)">
<constraints nullable="false"/>
</column>
<column name="SOURCE" type="INTEGER"/>
<column name="USER_EDIT" type="VARCHAR(50)"/>
<column name="USER_NEW" type="VARCHAR(50)">
<constraints nullable="false"/>
</column>
<column name="DATE_NEW" type="TIMESTAMP">
<constraints nullable="false"/>
</column>
<column name="DATE_EDIT" type="TIMESTAMP"/>
</createTable>
</changeSet>
</databaseChangeLog>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Source: Appointment_lib/process.js</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Source: Appointment_lib/process.js</h1>
<section>
<article>
<pre class="prettyprint source linenums"><code>import("system.neon");
import("system.logging");
import("system.text");
function AppointmentUtils()
{
/**
* Sets the partstat of the current users as given param state
* currentUserUri: string currentUserUri
* attendees: MSencoded calendarusers
* state: sets partstat
*/
this.setPartStat = function (currentUserUri, attendees, newState)
{
attendeesDecodedArray = text.decodeMS(attendees);
for(var i = 0; i &lt; attendeesDecodedArray.length; i++)
{
var decoded = text.decodeMS(attendeesDecodedArray[i])
if(decoded[0] == currentUserUri)
{
var updated = new Array();
var isSet = false;
for (var j = 0; j &lt; decoded.length; j++)
{
if (decoded[j].substr(0, 9) == "PARTSTAT:")
{
updated.push("PARTSTAT:" + newState);
isSet = true;
}
else
{
updated.push(decoded[j])
}
}
if (!isSet)
{
updated.push("PARTSTAT:" + newState);
}
// Updaten Attendees
var newAttendees = new Array();
for (var x = 0; x &lt; attendeesDecodedArray.length; x++)
{
if (text.decodeMS(attendeesDecodedArray[x])[0] == currentUserUri)
{
newAttendees.push(text.encodeMS( updated))
}
else
{
newAttendees.push(attendeesDecodedArray[x])
}
}
break;
}
}
return text.encodeMS(newAttendees);
}
this.sendExchangedAction = function(event, newState)
{
event["X-ADITO-STATUSACTION"] = newState; // "ACCEPT", "DECLINE", ""
event[calendars.AFFECTEDUSERS] = "";
calendars.updateEntry(event);
}
}</code></pre>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="BinaryUtils.html">BinaryUtils</a></li><li><a href="CopyModuleUtils.html">CopyModuleUtils</a></li><li><a href="DataUtils.html">DataUtils</a></li><li><a href="ImageUtils.html">ImageUtils</a></li><li><a href="JDitoUtils.html">JDitoUtils</a></li><li><a href="JSONUtils.html">JSONUtils</a></li><li><a href="LegacySqlUtils.html">LegacySqlUtils</a></li><li><a href="StringUtils.html">StringUtils</a></li><li><a href="TableUtils.html">TableUtils</a></li><li><a href="UrlUtils.html">UrlUtils</a></li></ul><h3>Global</h3><ul><li><a href="global.html#CommValidationUtil">CommValidationUtil</a></li><li><a href="global.html#createKeyword">createKeyword</a></li><li><a href="global.html#DateUtils">DateUtils</a></li><li><a href="global.html#getCurrentProductPrice">getCurrentProductPrice</a></li><li><a href="global.html#getDateIncrementedByYears">getDateIncrementedByYears</a></li><li><a href="global.html#getNextOfferNumber">getNextOfferNumber</a></li><li><a href="global.html#getNextProjectNumber">getNextProjectNumber</a></li><li><a href="global.html#getProductDetails">getProductDetails</a></li><li><a href="global.html#getStandardArray">getStandardArray</a></li><li><a href="global.html#getStockCount">getStockCount</a></li><li><a href="global.html#getTodayUTC">getTodayUTC</a></li><li><a href="global.html#getViewValue">getViewValue</a></li><li><a href="global.html#KeywordUtils">KeywordUtils</a></li><li><a href="global.html#ProcessHandlingUtil">ProcessHandlingUtil</a></li><li><a href="global.html#setPartStat">setPartStat</a></li><li><a href="global.html#SqlCondition">SqlCondition</a></li><li><a href="global.html#SqlMaskingUtils">SqlMaskingUtils</a></li><li><a href="global.html#toArray">toArray</a></li><li><a href="global.html#validateBeginnBeforeEnd">validateBeginnBeforeEnd</a></li><li><a href="global.html#validateOfferNumber">validateOfferNumber</a></li><li><a href="global.html#validateProjectNumber">validateProjectNumber</a></li></ul>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Nov 21 2018 09:00:46 GMT+0100 (GMT+01:00)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Class: BinaryUtils</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Class: BinaryUtils</h1>
<section>
<header>
<h2><span class="attribs"><span class="type-signature"></span></span>BinaryUtils<span class="signature">()</span><span class="type-signature"></span></h2>
</header>
<article>
<div class="container-overview">
<h4 class="name" id="BinaryUtils"><span class="type-signature"></span>new BinaryUtils<span class="signature">()</span><span class="type-signature"></span></h4>
<div class="description">
Class containing utility functions for use with base64 and binaries
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="Util_lib_process.js.html">Util_lib/process.js</a>, <a href="Util_lib_process.js.html#line632">line 632</a>
</li></ul></dd>
</dl>
</div>
<h3 class="subsection-title">Methods</h3>
<h4 class="name" id="decode64"><span class="type-signature"></span>decode64<span class="signature">(input)</span><span class="type-signature"> &rarr; {String}</span></h4>
<div class="description">
decodes 64Based String
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>input</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">req the string</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="Util_lib_process.js.html">Util_lib/process.js</a>, <a href="Util_lib_process.js.html#line644">line 644</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
decoded String
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">String</span>
</dd>
</dl>
<h4 class="name" id="getBase64lengthBytes"><span class="type-signature"></span>getBase64lengthBytes<span class="signature">(pBase64str)</span><span class="type-signature"> &rarr; {Number}</span></h4>
<div class="description">
returns the original size of a B64 coded String in bytes
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>pBase64str</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">req base64 encoded string</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="Util_lib_process.js.html">Util_lib/process.js</a>, <a href="Util_lib_process.js.html#line661">line 661</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
size of the string in bytes
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">Number</span>
</dd>
</dl>
<h4 class="name" id="hasSubfolder"><span class="type-signature"></span>hasSubfolder<span class="signature">(pFilelist)</span><span class="type-signature"></span></h4>
<div class="description">
Checks if subfolders are present in a filelist
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>pFilelist</code></td>
<td class="type">
<span class="param-type">Array.&lt;String></span>
</td>
<td class="description last">req the file list as string array</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="Util_lib_process.js.html">Util_lib/process.js</a>, <a href="Util_lib_process.js.html#line760">line 760</a>
</li></ul></dd>
</dl>
<h4 class="name" id="resolveSubfolders"><span class="type-signature"></span>resolveSubfolders<span class="signature">(pFilelist)</span><span class="type-signature"></span></h4>
<div class="description">
reads the folders in a filelist and returns their contained files
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>pFilelist</code></td>
<td class="type">
<span class="param-type">Array.&lt;String></span>
</td>
<td class="description last">req Die Filelist als Stringarray.</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="Util_lib_process.js.html">Util_lib/process.js</a>, <a href="Util_lib_process.js.html#line700">line 700</a>
</li></ul></dd>
</dl>
<h4 class="name" id="sanitizeFilelist"><span class="type-signature"></span>sanitizeFilelist<span class="signature">(pFilelist)</span><span class="type-signature"></span></h4>
<div class="description">
sanitizes the filelist gotten from Drag&Drop and returns it.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>pFilelist</code></td>
<td class="type">
<span class="param-type">Array.&lt;String></span>
</td>
<td class="description last">req Die Filelist als Stringarray.</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="Util_lib_process.js.html">Util_lib/process.js</a>, <a href="Util_lib_process.js.html#line678">line 678</a>
</li></ul></dd>
</dl>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="BinaryUtils.html">BinaryUtils</a></li><li><a href="CopyModuleUtils.html">CopyModuleUtils</a></li><li><a href="DataUtils.html">DataUtils</a></li><li><a href="ImageUtils.html">ImageUtils</a></li><li><a href="JDitoUtils.html">JDitoUtils</a></li><li><a href="JSONUtils.html">JSONUtils</a></li><li><a href="LegacySqlUtils.html">LegacySqlUtils</a></li><li><a href="StringUtils.html">StringUtils</a></li><li><a href="TableUtils.html">TableUtils</a></li><li><a href="UrlUtils.html">UrlUtils</a></li></ul><h3>Global</h3><ul><li><a href="global.html#CommValidationUtil">CommValidationUtil</a></li><li><a href="global.html#createKeyword">createKeyword</a></li><li><a href="global.html#DateUtils">DateUtils</a></li><li><a href="global.html#getCurrentProductPrice">getCurrentProductPrice</a></li><li><a href="global.html#getDateIncrementedByYears">getDateIncrementedByYears</a></li><li><a href="global.html#getNextOfferNumber">getNextOfferNumber</a></li><li><a href="global.html#getNextProjectNumber">getNextProjectNumber</a></li><li><a href="global.html#getProductDetails">getProductDetails</a></li><li><a href="global.html#getStandardArray">getStandardArray</a></li><li><a href="global.html#getStockCount">getStockCount</a></li><li><a href="global.html#getTodayUTC">getTodayUTC</a></li><li><a href="global.html#getViewValue">getViewValue</a></li><li><a href="global.html#KeywordUtils">KeywordUtils</a></li><li><a href="global.html#ProcessHandlingUtil">ProcessHandlingUtil</a></li><li><a href="global.html#setPartStat">setPartStat</a></li><li><a href="global.html#SqlCondition">SqlCondition</a></li><li><a href="global.html#SqlMaskingUtils">SqlMaskingUtils</a></li><li><a href="global.html#toArray">toArray</a></li><li><a href="global.html#validateBeginnBeforeEnd">validateBeginnBeforeEnd</a></li><li><a href="global.html#validateOfferNumber">validateOfferNumber</a></li><li><a href="global.html#validateProjectNumber">validateProjectNumber</a></li></ul>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Nov 21 2018 09:00:46 GMT+0100 (GMT+01:00)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Source: Comm_lib/process.js</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Source: Comm_lib/process.js</h1>
<section>
<article>
<pre class="prettyprint source linenums"><code>import("system.translate");
import("system.net");
import("system.mail");
import("system.cti");
/**
* provides somehow static methods for validation of communication data
* do not create an instance of this
*/
function CommValidationUtil(){
}
/**
* creates a function depending on a given COMM-category (like PHONE, EMAIL, etc.) or null if no validation-function was defined for the given category
* @param {string} commCategory category that determines which function shall be created, e.g. "EMAIL"
* @return {function} function that receives the following arguments:
* &lt;br/> - commAddress
* &lt;br/> - extensions
* &lt;br/>the function has to return null if everything is OK or a value with details if validation failed
*/
CommValidationUtil.makeValidationFn = function (commCategory){
var callbackFn;
switch (commCategory) {
case "EMAIL":
callbackFn = function (addrValue){
// if (!mail.isValidMailAddress(addrValue)) //TODO: enable JDito-methods
// return translate.text("no valid mail-address format");
return null;
}
break;
case "LINK":
callbackFn = function (addrValue){
// if (!net.isValidUrl(addrValue, ["http", "https"]))//TODO: enable JDito-methods
// return translate.text("no valid format");
return null;
}
break;
case "TELEPHONE":
callbackFn = function (addrValue, ext){
var country = null;
if (addrValue[0] != "+") //if the number starts with a country-identifier (e.g. +49) no country needs to be specified
country = ext.countryCode;
// if (!cti.isValidPhoneNumber(addrValue, country))//TODO: enable JDito-methods
// return translate.text("no valid phone number");
return null;
}
break;
default:
callbackFn = null;
break;
}
return callbackFn;
}
/**
* returns a blueprint for validation extensions; these extensions are needed for validating comm data and can be passed to other functions
* @return {object} a object with properties that have a specific default value; normally you want to overwrite that value
*/
CommValidationUtil.getExtensionsBlueprint = function(){
return {
countryCode: null
};
}
</code></pre>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="BinaryUtils.html">BinaryUtils</a></li><li><a href="CopyModuleUtils.html">CopyModuleUtils</a></li><li><a href="DataUtils.html">DataUtils</a></li><li><a href="ImageUtils.html">ImageUtils</a></li><li><a href="JDitoUtils.html">JDitoUtils</a></li><li><a href="JSONUtils.html">JSONUtils</a></li><li><a href="LegacySqlUtils.html">LegacySqlUtils</a></li><li><a href="StringUtils.html">StringUtils</a></li><li><a href="TableUtils.html">TableUtils</a></li><li><a href="UrlUtils.html">UrlUtils</a></li></ul><h3>Global</h3><ul><li><a href="global.html#CommValidationUtil">CommValidationUtil</a></li><li><a href="global.html#createKeyword">createKeyword</a></li><li><a href="global.html#DateUtils">DateUtils</a></li><li><a href="global.html#getCurrentProductPrice">getCurrentProductPrice</a></li><li><a href="global.html#getDateIncrementedByYears">getDateIncrementedByYears</a></li><li><a href="global.html#getNextOfferNumber">getNextOfferNumber</a></li><li><a href="global.html#getNextProjectNumber">getNextProjectNumber</a></li><li><a href="global.html#getProductDetails">getProductDetails</a></li><li><a href="global.html#getStandardArray">getStandardArray</a></li><li><a href="global.html#getStockCount">getStockCount</a></li><li><a href="global.html#getTodayUTC">getTodayUTC</a></li><li><a href="global.html#getViewValue">getViewValue</a></li><li><a href="global.html#KeywordUtils">KeywordUtils</a></li><li><a href="global.html#ProcessHandlingUtil">ProcessHandlingUtil</a></li><li><a href="global.html#setPartStat">setPartStat</a></li><li><a href="global.html#SqlCondition">SqlCondition</a></li><li><a href="global.html#SqlMaskingUtils">SqlMaskingUtils</a></li><li><a href="global.html#toArray">toArray</a></li><li><a href="global.html#validateBeginnBeforeEnd">validateBeginnBeforeEnd</a></li><li><a href="global.html#validateOfferNumber">validateOfferNumber</a></li><li><a href="global.html#validateProjectNumber">validateProjectNumber</a></li></ul>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Nov 21 2018 09:00:46 GMT+0100 (GMT+01:00)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Class: CopyModuleUtils</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Class: CopyModuleUtils</h1>
<section>
<header>
<h2><span class="attribs"><span class="type-signature"></span></span>CopyModuleUtils<span class="signature">()</span><span class="type-signature"></span></h2>
</header>
<article>
<div class="container-overview">
<h4 class="name" id="CopyModuleUtils"><span class="type-signature"></span>new CopyModuleUtils<span class="signature">()</span><span class="type-signature"></span></h4>
<div class="description">
Class containing utility functions for copying modules
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="Util_lib_process.js.html">Util_lib/process.js</a>, <a href="Util_lib_process.js.html#line1066">line 1066</a>
</li></ul></dd>
</dl>
</div>
<h3 class="subsection-title">Methods</h3>
<h4 class="name" id="copyModule"><span class="type-signature"></span>copyModule<span class="signature">(pInputMapping)</span><span class="type-signature"></span></h4>
<div class="description">
Creates a copy of a specified module together with specified subordinated modules. <br> The structure of the input mapping object is the following: <br> pInputMapping { (only one rootModule allowed) $rootModule$: { condition: "sqlWhereCondition" , ValueMapping: {$colName$: "value"} , destinationModuleName: "destinationModuleName" , DestinationColumnMapping: { $sourceColName$ : "destinationColName" } , SubModules: { $Module$:{ condition: "sqlWhereCondition" , ValueMapping: {$colName$: "value"} , destinationModuleName: "destinationModuleName" , DestinationColumnMapping: { $sourceColName$ : "destinationColName" } , SubModules: {...} } } } }
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>pInputMapping</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="Util_lib_process.js.html">Util_lib/process.js</a>, <a href="Util_lib_process.js.html#line1140">line 1140</a>
</li></ul></dd>
</dl>
<h5>Example</h5>
<pre class="prettyprint"><code>var CMUtils = new CopyModuleUtils(); var InputMapping = { "OFFER": { condition: "OFFERID = '" + vars.get("$field.OFFERID") + "'" ,SubModules:{ "OFFERITEM": { condition: "OFFER_ID = '" + vars.get("$field.OFFERID") + "' order by ITEMSORT" } } } } CMUtils.copyModule(InputMapping);</code></pre>
<h4 class="name" id="openNewModules"><span class="type-signature"></span>openNewModules<span class="signature">(pNeonContext, pModulesMapping)</span><span class="type-signature"></span></h4>
<div class="description">
opens the new created modules in neonClient
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>pNeonContext</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">req Name of the neon context that should be opened</td>
</tr>
<tr>
<td class="name"><code>pModulesMapping</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">req ModulesMapping object created by method copyModule</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="Util_lib_process.js.html">Util_lib/process.js</a>, <a href="Util_lib_process.js.html#line1080">line 1080</a>
</li></ul></dd>
</dl>
<h5>Example</h5>
<pre class="prettyprint"><code>var ModulesMapping = CMUtils.copyModule(InputMapping); CMUtils.openNewModules("Offer_context", ModulesMapping);</code></pre>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="BinaryUtils.html">BinaryUtils</a></li><li><a href="CopyModuleUtils.html">CopyModuleUtils</a></li><li><a href="DataUtils.html">DataUtils</a></li><li><a href="ImageUtils.html">ImageUtils</a></li><li><a href="JDitoUtils.html">JDitoUtils</a></li><li><a href="JSONUtils.html">JSONUtils</a></li><li><a href="LegacySqlUtils.html">LegacySqlUtils</a></li><li><a href="StringUtils.html">StringUtils</a></li><li><a href="TableUtils.html">TableUtils</a></li><li><a href="UrlUtils.html">UrlUtils</a></li></ul><h3>Global</h3><ul><li><a href="global.html#CommValidationUtil">CommValidationUtil</a></li><li><a href="global.html#createKeyword">createKeyword</a></li><li><a href="global.html#DateUtils">DateUtils</a></li><li><a href="global.html#getCurrentProductPrice">getCurrentProductPrice</a></li><li><a href="global.html#getDateIncrementedByYears">getDateIncrementedByYears</a></li><li><a href="global.html#getNextOfferNumber">getNextOfferNumber</a></li><li><a href="global.html#getNextProjectNumber">getNextProjectNumber</a></li><li><a href="global.html#getProductDetails">getProductDetails</a></li><li><a href="global.html#getStandardArray">getStandardArray</a></li><li><a href="global.html#getStockCount">getStockCount</a></li><li><a href="global.html#getTodayUTC">getTodayUTC</a></li><li><a href="global.html#getViewValue">getViewValue</a></li><li><a href="global.html#KeywordUtils">KeywordUtils</a></li><li><a href="global.html#ProcessHandlingUtil">ProcessHandlingUtil</a></li><li><a href="global.html#setPartStat">setPartStat</a></li><li><a href="global.html#SqlCondition">SqlCondition</a></li><li><a href="global.html#SqlMaskingUtils">SqlMaskingUtils</a></li><li><a href="global.html#toArray">toArray</a></li><li><a href="global.html#validateBeginnBeforeEnd">validateBeginnBeforeEnd</a></li><li><a href="global.html#validateOfferNumber">validateOfferNumber</a></li><li><a href="global.html#validateProjectNumber">validateProjectNumber</a></li></ul>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Nov 21 2018 09:00:46 GMT+0100 (GMT+01:00)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment