29dol_include_once(
'/recruitment/core/modules/recruitment/modules_recruitmentcandidature.php');
41 public $version =
'dolibarr';
51 public $name =
'advanced';
61 global $conf, $langs, $db;
63 $langs->load(
"bills");
65 $form =
new Form($db);
67 $texte = $langs->trans(
'GenericNumRefModelDesc').
"<br>\n";
68 $texte .=
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="POST">';
69 $texte .=
'<input type="hidden" name="token" value="'.newToken().
'">';
70 $texte .=
'<input type="hidden" name="action" value="updateMask">';
71 $texte .=
'<input type="hidden" name="maskconstcand" value="RECRUITMENT_RECRUITMENTCANDIDATURE_ADVANCED_MASK">';
72 $texte .=
'<table class="nobordernopadding centpercent">';
74 $tooltip = $langs->trans(
"GenericMaskCodes", $langs->transnoentities(
"RecruitmentCandidature"), $langs->transnoentities(
"RecruitmentCandidature"));
75 $tooltip .= $langs->trans(
"GenericMaskCodes2");
76 $tooltip .= $langs->trans(
"GenericMaskCodes3");
77 $tooltip .= $langs->trans(
"GenericMaskCodes4a", $langs->transnoentities(
"RecruitmentCandidature"), $langs->transnoentities(
"RecruitmentCandidature"));
78 $tooltip .= $langs->trans(
"GenericMaskCodes5");
81 $texte .=
'<tr><td>'.$langs->trans(
"Mask").
':</td>';
82 $texte .=
'<td class="right">'.$form->textwithpicto(
'<input type="text" class="flat minwidth175" name="maskcand" value="'.
getDolGlobalString(
'RECRUITMENT_RECRUITMENTCANDIDATURE_ADVANCED_MASK').
'">', $tooltip, 1, 1).
'</td>';
84 $texte .=
'<td class="left" rowspan="2"> <input type="submit" class="button button-edit" name="Button"value="'.$langs->trans(
"Modify").
'"></td>';
101 global $conf, $langs, $mysoc;
103 $old_code_client = $mysoc->code_client;
104 $old_code_type = $mysoc->typent_code;
105 $mysoc->code_client =
'CCCCCCCCCC';
106 $mysoc->typent_code =
'TTTTTTTTTT';
108 $mysoc->code_client = $old_code_client;
109 $mysoc->typent_code = $old_code_type;
112 $numExample = $langs->trans(
'NotConfigured');
127 require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
133 $this->error =
'NotConfigured';
137 $date = $object->date;
139 $numFinal =
get_next_value($db, $mask,
'recruitment_recruitmentcandidature',
'ref',
'',
null, $date);
Parent class to manage numbering of RecruitmentCandidature.
Class to manage the Advanced numbering rule for Job application.
getNextValue($object)
Return next free value.
info()
Returns the description of the numbering model.
getExample()
Return an example of numbering.
get_next_value($db, $mask, $table, $field, $where='', $objsoc='', $date='', $mode='next', $bentityon=true, $objuser=null, $forceentity=null)
Return last or next value for a mask (according to area we should not reset)
if(!function_exists( 'dol_getprefix')) dol_include_once($relpath, $classname='')
Make an include_once using default root and alternate root if it fails.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.