FSN#33339 API2 ook bijlagen ondersteunen
svn path=/Website/trunk/; revision=25676
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
function model_custom_fields(flexModule, flexId, flexParams)
|
||||
{
|
||||
flexParams = flexParams || {};
|
||||
this.module = flexModule;
|
||||
this.table = "flex";
|
||||
this.primary = "flexparentkey";
|
||||
@@ -44,7 +45,7 @@ function model_custom_fields(flexModule, flexId, flexParams)
|
||||
{
|
||||
if (record.type == 'F' || record.type == 'M')
|
||||
{
|
||||
var flexparam = flexProps(flexModule, record.pid, String(record.id), "F", { getFiles: true });
|
||||
var flexparam = flexProps(flexModule, record.pid, String(record.id), flexParams.pNiveau, { getFiles: true });
|
||||
record.attachments = [];
|
||||
for (var f in flexparam.files)
|
||||
{
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
<!-- #include file="../Shared/discx3d.inc" -->
|
||||
<!-- #include file="../mld/mld.inc" -->
|
||||
<!-- #include file="model_issueobjects.inc"-->
|
||||
<!-- #include file="model_issuetypes.inc"-->
|
||||
<!-- #include file="model_notes.inc"-->
|
||||
<!-- #include file="model_orders.inc"-->
|
||||
<!-- #include file="./model_custom_fields.inc"-->
|
||||
@@ -82,7 +83,7 @@ function model_issues(mld_key, params)
|
||||
return " mld_melding.mld_melding_key = mld_opdr.mld_melding_key(+) ";
|
||||
}
|
||||
},
|
||||
"custom_fields" : { model: new model_custom_fields("MLD", "mld_melding_key", { readman: true, readuse: true }),
|
||||
"custom_fields" : { model: new model_custom_fields("MLD", "mld_melding_key", { pNiveau: "M", readman: true, readuse: true }),
|
||||
joinfield: "flexparentkey"
|
||||
}
|
||||
};
|
||||
@@ -542,6 +543,10 @@ function model_issues(mld_key, params)
|
||||
mld.setmeldingstatus(the_key, 5);
|
||||
}
|
||||
|
||||
this.search = {
|
||||
"filters": ["id"]
|
||||
};
|
||||
|
||||
if (mld_key > 0)
|
||||
{
|
||||
params.filter = params.filter || {};
|
||||
|
||||
@@ -86,7 +86,7 @@ function model_orders(opdr_key, params)
|
||||
return "(module='ORD' OR module IS NULL) AND fac_v_notes.parent_key(+) = mld_opdr.mld_opdr_key";
|
||||
}
|
||||
},
|
||||
"custom_fields" : { model: new model_custom_fields("OPDR", "mld_opdr_key", { readman: true, readuse: true }),
|
||||
"custom_fields" : { model: new model_custom_fields("OPDR", "mld_opdr_key", { pNiveau: "O", readman: true, readuse: true }),
|
||||
joinfield: "flexparentkey"
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user