Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
sublima
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
46
Issues
46
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
accounting
sublima
Commits
c22e228fa53c
Commit
469bf5db
authored
Jul 04, 2017
by
francescoB
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
funzion get_destinazionemerge out of document ready commented
--HG-- branch : francesco-dev
parent
a5abdfa65b3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
25 deletions
+25
-25
tpl/pg/addedit/documento/_ae_documento.js
tpl/pg/addedit/documento/_ae_documento.js
+25
-25
No files found.
tpl/pg/addedit/documento/_ae_documento.js
View file @
c22e228fa53c
...
...
@@ -374,31 +374,31 @@ function quantitageneraleFormatter(data) {
// castellettoRiepiloghi()
// }
/**
* get_destinazionemerce() dato l'id del cliente, esegue una chiamata per ottenere da destianzione della merce
* @param idCliente l'id del cliente
*/
function
get_destinazionemerce
(
idCliente
)
{
$
(
"
#id_destinazione_merce
"
).
html
(
'
<option><option>
'
);
$
.
get
(
"
/pg/as_DestinazioneMerce/GetData
"
,
{
'
idCliente
'
:
idCliente
},
function
(
data
)
{
data
=
$
.
parseJSON
(
data
);
// la variabile data è sempre valorizzata?
// è utile verificare se esiste prima di lanciare un messaggio?
//riempie la select con i dati ottenuti
$
(
"
#id_destinazione_merce
"
).
select2
({
allowClear
:
true
,
placeholder
:
""
,
width
:
"
100%
"
,
minimumResultsForSearch
:
Infinity
,
language
:
"
it
"
,
theme
:
"
bootstrap
"
,
"
data
"
:
data
},
true
,
true
);
return
data
});
}
/
/ /
**
//
* get_destinazionemerce() dato l'id del cliente, esegue una chiamata per ottenere da destianzione della merce
//
* @param idCliente l'id del cliente
//
*/
//
function get_destinazionemerce(idCliente) {
//
//
$("#id_destinazione_merce").html('<option><option>');
//
$.get("/pg/as_DestinazioneMerce/GetData", {'idCliente':idCliente}, function( data ) {
//
data = $.parseJSON(data);
//
// la variabile data è sempre valorizzata?
//
// è utile verificare se esiste prima di lanciare un messaggio?
//
//riempie la select con i dati ottenuti
//
//
$("#id_destinazione_merce").select2({
//
allowClear: true,
//
placeholder: "",
//
width:"100%",
//
minimumResultsForSearch: Infinity,
//
language:"it",
//
theme: "bootstrap",
//
"data":data
//
}, true, true);
//
return data
//
});
//
}
//FINE SPOSTAMENTO FUNZIONE INTERNE AL DOCUMENT READY
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment