FSN#36148 mld_typeopdr_srtdiscipline_key inkorten

svn path=/Website/trunk/; revision=29034
This commit is contained in:
Jos Groot Lipman
2016-04-19 13:35:05 +00:00
parent ce9b9fb56e
commit 688932008f
2 changed files with 3 additions and 5 deletions

View File

@@ -15,7 +15,7 @@
function model_mld_typeopdr_srtdiscipline() function model_mld_typeopdr_srtdiscipline()
{ {
this.table = "mld_v_typeopdr_srtdisc"; this.table = "mld_typeopdr_srtdiscipline";
this.primary = "mld_typeopdr_srtdisc_key"; this.primary = "mld_typeopdr_srtdisc_key";
this.records_name = "mld_typeopdr_srtdisciplines"; this.records_name = "mld_typeopdr_srtdisciplines";
this.record_name = "mld_typeopdr_srtdiscipline"; this.record_name = "mld_typeopdr_srtdiscipline";

View File

@@ -343,8 +343,7 @@ if (mld_key == -1 || copy)
if (mld_info.mld_status >= 4 ) { // niet afgewezen(1), ingevoerd(2) of ingezien(3) if (mld_info.mld_status >= 4 ) { // niet afgewezen(1), ingevoerd(2) of ingezien(3)
showbes = mld_info.show_bes; // Heeft voor een gegeven (srt)discipline een vaste waarde showbes = mld_info.show_bes; // Heeft voor een gegeven (srt)discipline een vaste waarde
// De opdrachttypes behorende bij de srtdiscipline of bij de discipline // De opdrachttypes behorende bij de srtdiscipline of bij de discipline
sql = "SELECT mld_typeopdr_srtdiscipline_key" sql = "SELECT mto.mld_typeopdr_zichtbaarfe"
+ " , mto.mld_typeopdr_zichtbaarfe"
+ " FROM ins_srtdiscipline sd" + " FROM ins_srtdiscipline sd"
+ " , mld_discipline d" + " , mld_discipline d"
+ " , mld_typeopdr_srtdiscipline tsd" + " , mld_typeopdr_srtdiscipline tsd"
@@ -355,8 +354,7 @@ if (mld_key == -1 || copy)
+ " AND tsd.mld_typeopdr_key = mto.mld_typeopdr_key" + " AND tsd.mld_typeopdr_key = mto.mld_typeopdr_key"
+ " AND d.ins_discipline_key = " + mld_info.disc + " AND d.ins_discipline_key = " + mld_info.disc
+ " UNION ALL" + " UNION ALL"
+ " SELECT mld_typeopdr_srtdiscipline_key" + " SELECT mto.mld_typeopdr_zichtbaarfe"
+ " , mto.mld_typeopdr_zichtbaarfe"
+ " FROM ins_srtdiscipline sd" + " FROM ins_srtdiscipline sd"
+ " , mld_discipline d" + " , mld_discipline d"
+ " , mld_typeopdr_srtdiscipline tsd" + " , mld_typeopdr_srtdiscipline tsd"