Go to the source code of this file.
|
function | mod_coprop (dossier, coprop_id, plugin_code, ac) |
| Modifier un copropriétaire et les lots qu'il a. More...
|
|
function | remove_lot (plugin_code, ac, dossier, lot_id) |
|
function | add_coprop () |
| Ajout un lien entre copropriétaire et lot. More...
|
|
function | copro_show_list () |
|
function | add_key (dossier, plugin_code, ac) |
| Ajout clef + tantième lot associés. More...
|
|
function | mod_key (dossier, plugin_code, ac, key_id) |
| Modifie clef + tantième lot associés. More...
|
|
function | remove_key (plugin_code, ac, dossier, key_id) |
|
function | compute_key () |
|
function | budget_detail (plugin_code, ac, dossier, bud_id) |
|
function | compute_budget () |
|
function | budget_add (dossier, plugin_code, ac) |
|
function | budget_remove (plugin_code, ac, dossier, bud_id) |
|
function | appel_fond_show () |
|
Ajout un lien entre copropriétaire et lot.
Definition at line 97 of file coprop-javascript.js.
References show().
101 $(
'listcoprolot').hide();
102 $(
'ajoutcopro').
show();
106 alert_box(e.message);
function add_key |
( |
|
dossier, |
|
|
|
plugin_code, |
|
|
|
ac |
|
) |
| |
Ajout clef + tantième lot associés.
Definition at line 125 of file coprop-javascript.js.
127 $(
'key_list').hide();
131 var queryString=
"plugin_code="+plugin_code+
"&gDossier="+dossier+
'&ac='+ac+
"&act=addkey";
132 var action=
new Ajax.Request (
'ajax.php',
135 parameters:queryString,
137 onSuccess:
function (response)
141 remove_waiting_box();
142 $(
'keydetail_div').innerHTML=response.responseText;
143 $(
'keydetail_div').show();
144 response.responseText.evalScripts();
148 alert_box(
"Réponse Ajax ="+e.message);
156 alert_box(e.message);
function appel_fond_show |
( |
| ) |
|
Definition at line 405 of file coprop-javascript.js.
References show().
410 var choice=aft.options[aft.selectedIndex].value;
413 $(
'appel_fond_budget').hide();
414 $(
'appel_fond_amount').hide();
419 $(
'appel_fond_budget').
show();
420 $(
'appel_fond_amount').hide();
425 $(
'appel_fond_budget').hide();
426 $(
'appel_fond_amount').
show();
431 alert_box(e.message);
function budget_add |
( |
|
dossier, |
|
|
|
plugin_code, |
|
|
|
ac |
|
) |
| |
Definition at line 335 of file coprop-javascript.js.
340 var queryString=
"plugin_code="+plugin_code+
"&gDossier="+dossier+
"&bud_id=0&ac="+ac+
"&act=budadd";
341 var action=
new Ajax.Request (
'ajax.php',
344 parameters:queryString,
346 onSuccess:
function (response)
350 remove_waiting_box();
351 $(
'divbuddetail').innerHTML=response.responseText;
352 response.responseText.evalScripts();
356 alert_box(
"Réponse Ajax ="+e.message);
364 alert_box(e.message);
function budget_detail |
( |
|
plugin_code, |
|
|
|
ac, |
|
|
|
dossier, |
|
|
|
bud_id |
|
) |
| |
Definition at line 269 of file coprop-javascript.js.
274 var queryString=
"plugin_code="+plugin_code+
"&gDossier="+dossier+
"&bud_id="+bud_id+
'&ac='+ac+
"&act=buddisplay";
275 var action=
new Ajax.Request (
'ajax.php',
278 parameters:queryString,
280 onSuccess:
function (response)
284 remove_waiting_box();
285 $(
'divbuddetail').innerHTML=response.responseText;
286 response.responseText.evalScripts();
290 alert_box(
"Réponse Ajax ="+e.message);
298 alert_box(e.message);
function budget_remove |
( |
|
plugin_code, |
|
|
|
ac, |
|
|
|
dossier, |
|
|
|
bud_id |
|
) |
| |
Definition at line 367 of file coprop-javascript.js.
References style.
369 if (! confirm(
"Vous voulez effacer ce budget?")) {
return;}
373 var queryString=
"plugin_code="+plugin_code+
"&gDossier="+dossier+
"&bud_id="+bud_id+
'&ac='+ac+
"&act=removebudget";
374 var action=
new Ajax.Request (
'ajax.php',
377 parameters:queryString,
379 onSuccess:
function (response)
383 remove_waiting_box();
384 $(
"row"+bud_id).
style.color=
"red";
385 $(
"row"+bud_id).style.textDecoration=
"line-through";
386 $(
"col2"+bud_id).innerHTML=
"";
387 $(
"col1"+bud_id).innerHTML=
"";
393 alert_box(
"Réponse Ajax ="+e.message);
401 alert_box(e.message);
function compute_budget |
( |
| ) |
|
Definition at line 301 of file coprop-javascript.js.
References name, style, and value.
306 var array=$(
"fbud_update").getInputs(
'text');
308 for (i=0;i<array.length;i++)
310 if ( array[i].
name.search(/bt_amount/) > -1)
312 if (! isNaN(array[i].
value) && array[i].value!=
"") {
313 tot+=parseFloat(array[i].value);
317 $(
"sbud_total").innerHTML=Math.round(tot*100)/100;
318 if ( ! isNaN($(
'b_amount').
value)) {
319 var difference=parseFloat($(
'b_amount').
value)-tot;
320 difference=Math.round(difference*100)/100;
321 if ( difference != 0 ) {
322 $(
'span_diff').
style.backgroundColor=
"red";
324 $(
'span_diff').
style.backgroundColor=
"green";
326 $(
'span_diff').innerHTML=difference;
332 alert_box(e.message);
Definition at line 234 of file coprop-javascript.js.
References name, style, and value.
239 var array=$(
"fkey").getInputs(
'text');
241 for (i=0;i<array.length;i++)
243 if ( array[i].
name.search(/part/) > -1)
245 if (! isNaN(array[i].
value)) {
246 tot+=parseFloat(array[i].value);
250 $(
"span_tantieme").innerHTML=Math.round(tot);
251 if ( ! isNaN($(
'cr_tantieme').
value)) {
252 var difference=parseFloat($(
'cr_tantieme').
value)-tot;
253 difference=Math.round(difference*100)/100;
254 if ( difference != 0 ) {
255 $(
'span_diff').
style.backgroundColor=
"red";
257 $(
'span_diff').
style.backgroundColor=
"green";
259 $(
'span_diff').innerHTML=difference;
265 alert_box(e.message);
function copro_show_list |
( |
| ) |
|
function mod_coprop |
( |
|
dossier, |
|
|
|
coprop_id, |
|
|
|
plugin_code, |
|
|
|
ac |
|
) |
| |
Modifier un copropriétaire et les lots qu'il a.
Definition at line 23 of file coprop-javascript.js.
28 var queryString=
"plugin_code="+plugin_code+
"&gDossier="+dossier+
"&coprop_id="+coprop_id+
'&ac='+ac+
"&act=modcopro";
29 var action=
new Ajax.Request (
'ajax.php',
32 parameters:queryString,
34 onSuccess:
function (response)
39 $(
'listcoprolot').hide();
40 $(
'ajoutcopro').hide();
41 $(
'divcopropmod').innerHTML=response.responseText;
46 alert_box(
"Réponse Ajax ="+e.message);
function mod_key |
( |
|
dossier, |
|
|
|
plugin_code, |
|
|
|
ac, |
|
|
|
key_id |
|
) |
| |
Modifie clef + tantième lot associés.
Definition at line 162 of file coprop-javascript.js.
164 $(
'key_list').hide();
168 var queryString=
"plugin_code="+plugin_code+
"&gDossier="+dossier+
"&key_id="+key_id+
'&ac='+ac+
"&act=modkey";
169 var action=
new Ajax.Request (
'ajax.php',
172 parameters:queryString,
174 onSuccess:
function (response)
178 remove_waiting_box();
179 $(
'keydetail_div').innerHTML=response.responseText;
180 $(
'keydetail_div').show();
181 response.responseText.evalScripts();
186 alert_box(
"Réponse Ajax ="+e.message);
194 alert_box(e.message);
function remove_key |
( |
|
plugin_code, |
|
|
|
ac, |
|
|
|
dossier, |
|
|
|
key_id |
|
) |
| |
Definition at line 198 of file coprop-javascript.js.
References style.
200 if (! confirm(
"Vous voulez effacer cette clef ?")) {
return;}
204 var queryString=
"plugin_code="+plugin_code+
"&gDossier="+dossier+
"&key_id="+key_id+
'&ac='+ac+
"&act=removekey";
205 var action=
new Ajax.Request (
'ajax.php',
208 parameters:queryString,
210 onSuccess:
function (response)
214 remove_waiting_box();
215 $(
"row"+key_id).
style.color=
"red";
216 $(
"row"+key_id).style.textDecoration=
"line-through";
217 $(
"col"+key_id).innerHTML=
"";
223 alert_box(
"Réponse Ajax ="+e.message);
231 alert_box(e.message);
function remove_lot |
( |
|
plugin_code, |
|
|
|
ac, |
|
|
|
dossier, |
|
|
|
lot_id |
|
) |
| |
Definition at line 57 of file coprop-javascript.js.
References style.
59 if (! confirm(
"Vous voulez enlever ce lot ?")) {
return;}
63 var queryString=
"plugin_code="+plugin_code+
"&gDossier="+dossier+
"&lot_id="+lot_id+
'&ac='+ac+
"&act=removelot";
64 var action=
new Ajax.Request (
'ajax.php',
67 parameters:queryString,
69 onSuccess:
function (response)
74 $(
"row"+lot_id).
style.color=
"red";
75 $(
"row"+lot_id).style.textDecoration=
"line-through";
76 $(
"col"+lot_id).
style.textDecoration=
"none";
77 $(
"col"+lot_id).innerHTML=
"Effacé";
83 alert_box(
"Réponse Ajax ="+e.message);