Go to the source code of this file.
|
function | reconcilie (target, dossier_id, p_id, plugin_code, tiers) |
|
function | save_bank_info (obj) |
| When we save a reconcile dialog box with info. More...
|
|
function | success_bank_info (req, json) |
| Handle the ajax from save_bank_info. More...
|
|
function | impb_check_item (p_dossier, p_plugin_code, p_row_id) |
| if a row is checked or unchecked, save it into the table temp_bank.is_checked More...
|
|
function | selected_set_tiers (p_form_id) |
| Select the same tiers for several rows. More...
|
|
function | display_suggest (p_dossier, p_plugin_code, p_id) |
| Display the suggest when several are found. More...
|
|
function | select_suggest (p_dossier, p_plugin_code, temp_bank_id, suggest_bank_id) |
|
function display_suggest |
( |
|
p_dossier, |
|
|
|
p_plugin_code, |
|
|
|
p_id |
|
) |
| |
Display the suggest when several are found.
- Parameters
-
{type} | p_dossier |
{type} | p_plugin_code |
{type} | p_id |
- Returns
- {undefined}
Definition at line 133 of file bank_js.js.
References p_id, and style.
140 "plugin_code":p_plugin_code,
141 "gDossier":p_dossier,
143 "act":
"display_suggest"
146 onSuccess:
function(p_xml,p_json) {
147 removeDiv(
'display_suggest_box');
148 var
style=fixed_position(150,200)+
";width:50%";
149 add_div({
"id":
"display_suggest_box",
"cssclass":
"inner_box",
"style":
style,
"html":p_xml.responseText});
150 remove_waiting_box();
function impb_check_item |
( |
|
p_dossier, |
|
|
|
p_plugin_code, |
|
|
|
p_row_id |
|
) |
| |
if a row is checked or unchecked, save it into the table temp_bank.is_checked
- Parameters
-
p_dossier | |
p_plugin_code | |
p_row_id | temp_bank.id |
Definition at line 74 of file bank_js.js.
76 var name_checkbox=
'temp_bank';
77 var status=($(name_checkbox+p_row_id).checked)?1:0;
79 new Ajax.Request(
'ajax.php', {
81 parameters : {
'gDossier':p_dossier,
82 'plugin_code':p_plugin_code,
88 onSuccess:
function(req) {
function reconcilie |
( |
|
target, |
|
|
|
dossier_id, |
|
|
|
p_id, |
|
|
|
plugin_code, |
|
|
|
tiers |
|
) |
| |
Definition at line 2 of file bank_js.js.
References p_id, and style.
4 var qs=
"gDossier="+dossier_id+
'&plugin_code='+plugin_code+
'&act=show&id='+
p_id+
'&ctl='+target+
"&target="+tiers;
6 var action=
new Ajax.Request (
'ajax.php',
20 var str_style=
"top:"+sx+
"px;";
22 var div={
id:target, cssclass:
'inner_box',
style:str_style,html:loading(),drag:1};
function save_bank_info |
( |
|
obj | ) |
|
When we save a reconcile dialog box with info.
- Parameters
-
- Returns
- {Boolean}
Definition at line 31 of file bank_js.js.
References success_bank_info().
33 var query_string=obj.serialize();
34 var action=
new Ajax.Request (
'ajax.php',
37 parameters:query_string,
function success_bank_info(req, json)
Handle the ajax from save_bank_info.
function select_suggest |
( |
|
p_dossier, |
|
|
|
p_plugin_code, |
|
|
|
temp_bank_id, |
|
|
|
suggest_bank_id |
|
) |
| |
Definition at line 156 of file bank_js.js.
164 parameters:{
'act':
'set_suggest',
'id':temp_bank_id,
'suggest_id':suggest_bank_id,
'gDossier':p_dossier,
'plugin_code':p_plugin_code},
165 onSuccess:
function(req,json) {
167 remove_waiting_box();
168 removeDiv(
'display_suggest_box');
169 var json=req.responseText.evalJSON();
170 $(
'tiers'+temp_bank_id).innerHTML=json.tiers;
171 $(
'concop'+temp_bank_id).innerHTML=json.concop;
172 $(
'st'+temp_bank_id).innerHTML=json.status;
174 alert_box(
"select_suggest.function_ajax"+e.message);
179 alert_box(
"select_suggest"+e.message);
function selected_set_tiers |
( |
|
p_form_id | ) |
|
Select the same tiers for several rows.
The information import_id .. are in the form
- Parameters
-
{type} | p_form_id string id of the form |
- Returns
- {undefined}
Definition at line 100 of file bank_js.js.
References value.
102 smoke.confirm(
'Confirmez',
105 $(p_form_id).submit();
106 new Ajax.Request(
'ajax.php',
110 'gDossier':$(p_form_id)[
'gDossier'].
value,
112 'import_id':$(p_form_id)[
'import_id'].value,
113 'plugin_code':$(p_form_id)[
'plugin_code'].
value,
114 'ac':$(p_form_id)[
'ac'].value,
115 'fiche':$(p_form_id)[
'fiche1000'].
value
function success_bank_info |
( |
|
req, |
|
|
|
json |
|
) |
| |
Handle the ajax from save_bank_info.
- Parameters
-
- Returns
- {undefined}
Definition at line 50 of file bank_js.js.
Referenced by save_bank_info().
53 var answer=req.responseXML;
54 var a=answer.getElementsByTagName(
'extra');
55 var name_ctl=a[0].firstChild.nodeValue;
56 var ob=name_ctl.evalJSON(
true);
57 $(
'st'+ob.id).innerHTML=unescape_xml(ob.msg);
58 if (ob.tiers) { $(
'tiers'+ob.id).innerHTML=unescape_xml(ob.tiers);}
59 if (ob.concop){$(
'concop'+ob.id).innerHTML=unescape_xml(ob.concop);}
60 var div=answer.getElementsByTagName(
'ctl');
61 var div_ctl=div[0].firstChild.nodeValue;
65 alert_box(
'Erreur success_bank_info '+e.message);