30require_once DOL_DOCUMENT_ROOT .
'/core/modules/hrm/modules_evaluation.php';
42 public $version =
'dolibarr';
52 public $name =
'advanced';
61 public function info($langs)
65 $langs->load(
"bills");
69 $texte = $langs->trans(
'GenericNumRefModelDesc').
"<br>\n";
70 $texte .=
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
71 $texte .=
'<input type="hidden" name="token" value="'.newToken().
'">';
72 $texte .=
'<input type="hidden" name="action" value="updateMask">';
73 $texte .=
'<input type="hidden" name="maskconstEvaluation" value="HRM_EVALUATION_ADVANCED_MASK">';
74 $texte .=
'<input type="hidden" name="page_y" value="">';
76 $texte .=
'<table class="nobordernopadding centpercent">';
78 $tooltip = $langs->trans(
"GenericMaskCodes", $langs->transnoentities(
"Evaluation"), $langs->transnoentities(
"Evaluation"));
79 $tooltip .= $langs->trans(
"GenericMaskCodes1");
81 $tooltip .= $langs->trans(
"GenericMaskCodes2");
83 $tooltip .= $langs->trans(
"GenericMaskCodes3");
84 $tooltip .= $langs->trans(
"GenericMaskCodes4a", $langs->transnoentities(
"Evaluation"), $langs->transnoentities(
"Evaluation"));
85 $tooltip .= $langs->trans(
"GenericMaskCodes5");
89 $texte .=
'<tr><td>'.$langs->trans(
"Mask").
':</td>';
90 $texte .=
'<td class="right">'.$form->textwithpicto(
'<input type="text" class="flat minwidth175" name="maskEvaluation" value="'.
getDolGlobalString(
'HRM_EVALUATION_ADVANCED_MASK').
'">', $tooltip, 1,
'help',
'valignmiddle', 0, 3, $this->
name).
'</td>';
92 $texte .=
'<td class="left" rowspan="2"> <input type="submit" class="button button-edismallt reposition smallpaddingimp" value="'.$langs->trans(
"Save").
'" name="Button"></td>';
125 $numExample = $langs->trans(
'NotConfigured');
140 require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
146 $this->error =
'NotConfigured';
152 $numFinal =
get_next_value(
$db, $mask,
'hrm_evaluation',
'ref',
'',
null, $date);
if(! $sortfield) if(! $sortorder) $object
Parent class to manage numbering of Evaluation.
Class to manage customer evaluation numbering rules advanced.
info($langs)
Returns the description of the numbering model.
getExample()
Return an example of numbering.
getNextValue($object)
Return next free value.
get_next_value($db, $mask, $table, $field, $where='', $objsoc='', $date='', $mode='next', $bentityon=true, $objuser=null, $forceentity=null, $objbookkeeping=null)
Return last or next value for a mask (according to area we should not reset)
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
$conf db name
Only used if Module[ID]Name translation string is not found.