FSN#38610 SVN koppeling naar Facilitor ivm vervanging Logcentre
svn path=/Website/branches/v2016.3/; revision=32392
This commit is contained in:
@@ -74,30 +74,35 @@ function model_notes(module)
|
||||
{
|
||||
case "MLD":
|
||||
{ tabel.naam = "mld_melding_note";
|
||||
tabel.id = "mld_melding_note_key";
|
||||
tabel.seq = "mld_s_mld_melding_note_key";
|
||||
tabel.parent = "mld_melding";
|
||||
break;
|
||||
}
|
||||
case "ORD":
|
||||
{ tabel.naam = "mld_opdr_note";
|
||||
tabel.id = "mld_opdr_note_key";
|
||||
tabel.seq = "mld_s_mld_opdr_note_key";
|
||||
tabel.parent = "mld_opdr";
|
||||
break;
|
||||
}
|
||||
case "FIN":
|
||||
{ tabel.naam = "fin_factuur_note";
|
||||
tabel.id = "fin_dactuur_note_key";
|
||||
tabel.seq = "fin_s_fin_factuur_note_key";
|
||||
tabel.parent = "fin_factuur";
|
||||
break;
|
||||
}
|
||||
case "CNT":
|
||||
{ tabel.naam = "cnt_contract_note";
|
||||
tabel.id = "cnt_contract_note_key";
|
||||
tabel.seq = "cnt_s_cnt_contract_note_key";
|
||||
tabel.parent = "cnt_contract";
|
||||
break;
|
||||
}
|
||||
case "PRJ":
|
||||
{ tabel.naam = "prj_scenario_note";
|
||||
tabel.id = "prj_scenario_note_key";
|
||||
tabel.seq = "prj_s_prj_scenario_note_key";
|
||||
tabel.parent = "prj_scenario";
|
||||
break;
|
||||
@@ -108,12 +113,11 @@ function model_notes(module)
|
||||
this.table = tabel.naam;
|
||||
this.primary = tabel.parent + "_note_key";
|
||||
this.fields =
|
||||
{ "id" : { dbs: tabel.naam + "_key", typ: "key", seq: tabel.seq, filter: "exact" },
|
||||
{ "id" : { dbs: tabel.id, typ: "key", seq: tabel.seq, filter: "exact" },
|
||||
"author" : { dbs: "prs_perslid_key", typ: "key", foreign: "prs_perslid", filter: "exact" },
|
||||
"description" : { dbs: tabel.naam + "_omschrijving", typ: "varchar", filter: "like" },
|
||||
"createdate" : { dbs: tabel.naam + "_aanmaak", typ: "datetime" },
|
||||
// { name: "module", dbs: "module", typ: "varchar", filter: "exact" }
|
||||
"parent" : { dbs: tabel.parent + "_key", typ: "key", filter: "exact" }
|
||||
"createdate" : { dbs: tabel.naam + "_aanmaak", typ: "datetime"},
|
||||
"parent" : { dbs: tabel.parent + "_key", typ: "key", filter: "exact" }
|
||||
};
|
||||
|
||||
this.list = {
|
||||
@@ -163,9 +167,11 @@ function model_notes(module)
|
||||
{
|
||||
params.isNew = true;
|
||||
//
|
||||
var dbfields = api2.update_fields(params, this, jsondata); // Build updater
|
||||
dbfields["id"] = { dbs: tabel.id, typ: "key", seq: tabel.seq };
|
||||
|
||||
var xxxIns = buildInsert(this.table, dbfields, { noValidateToken: true });
|
||||
var new_key = xxxIns.sequences[xxx_tabel.naam];
|
||||
var new_key = xxxIns.sequences[tabel.id];
|
||||
|
||||
Oracle.Execute(xxxIns.sql);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user