svn path=/Website/trunk/; revision=36287
This commit is contained in:
Peter Feij
2017-12-07 15:37:08 +00:00
parent 76869080ea
commit 016e5a8bdc
7 changed files with 71 additions and 15 deletions

View File

@@ -1464,6 +1464,8 @@ ins = {checkAutLevel:
+ ", i.ins_deel_aanmaak"
+ ", i.ins_deel_vervaldatum"
+ ", i.ins_deel_actief"
+ ", i.ins_deel_mjb_score1"
+ ", i.ins_deel_mjb_score2"
: "");
sqlOwner_from = " FROM ins_deel i"
@@ -1648,6 +1650,8 @@ ins = {checkAutLevel:
+ ", i.ins_deel_aanmaak"
+ ", i.ins_deel_vervaldatum"
+ ", i.ins_deel_actief"
+ ", i.ins_deel_mjb_score1"
+ ", i.ins_deel_mjb_score2"
+ sqlKenmerkBewerkbaar_select
+ ", NULL prs_bedrijf_key"
+ ", NULL prs_afdeling_key1"
@@ -2287,6 +2291,8 @@ ins = {checkAutLevel:
var freeze = params.freeze;
var finish = params.finish;
var getsumtypes = params.getsumtypes;
var deelscore1 = params.deelscore1;
var deelscore2 = params.deelscore2;
// De datum (jaar) van de *eerstvolgende* onderhoudsbeurt volgt uit:
// Datum laatste (/laatste geplande) inspectie
@@ -2749,6 +2755,8 @@ ins = {checkAutLevel:
+ " , g.alg_gebouw_omschrijving"
+ " , g.alg_gebouw_key"
+ " , dl.ins_deel_omschrijving"
+ " , dl.ins_deel_mjb_score1"
+ " , dl.ins_deel_mjb_score2"
+ " , cy.ins_deel_aantal"
+ " , cy.ins_srtdeel_eenheid"
+ " , dl.ins_deel_opmerking"
@@ -2845,6 +2853,8 @@ ins = {checkAutLevel:
+ " , cv.alg_gebouw_omschrijving"
+ " , cv.alg_gebouw_key"
+ " , cv.ins_deel_omschrijving"
+ " , cv.ins_deel_mjb_score1"
+ " , cv.ins_deel_mjb_score2"
+ " , cv.ins_deel_aantal"
+ " , cv.ins_srtdeel_eenheid"
+ " , cv.ins_deel_opmerking"
@@ -2958,6 +2968,8 @@ ins = {checkAutLevel:
{
fields.push("ins_deel_aantal");
fields.push("ins_srtdeel_eenheid");
fields.push("ins_deel_mjb_score1");
fields.push("ins_deel_mjb_score2");
}
var sql_cost = "SELECT " + fields.join(", ")

View File

@@ -196,6 +196,8 @@ var ins_deel_aantal = 1;
+ " , " + lcl.xsqla('s.ins_srtdeel_eenheid', 's.ins_srtdeel_key')
+ " , d.prs_perslid_key_beh"
+ " , d.ins_deel_actief"
+ " , d.ins_deel_mjb_score1"
+ " , d.ins_deel_mjb_score2"
+ " FROM ins_deel d"
+ " , ins_srtdeel s"
+ " , ins_srtgroep g"
@@ -236,6 +238,8 @@ var ins_deel_aantal = 1;
+ " , d.ins_deel_opmerking"
+ " , idp.ins_disc_params_autonum"
+ " , " + lcl.xsqla('s.ins_srtdeel_eenheid', 's.ins_srtdeel_key')
+ " , d.ins_deel_mjb_score1"
+ " , d.ins_deel_mjb_score2"
+ " FROM ins_deel d"
+ " , ins_srtdeel s"
+ " , ins_srtgroep g"
@@ -312,20 +316,23 @@ var ins_deel_aantal = 1;
if (!parent_key)
parent_key = oRs('ins_deel_parent_key').Value;
srtdeel_binding = oRs('ins_srtdeel_binding').Value;
tekenbaar = oRs('ins_srtdeel_acadsymbol').Value != null;
getekend = oRs('ins_deel_dwgx').Value != null;
xcoord = (copy? null : oRs('ins_deel_x').Value); // Als copy dan xcoord leeg laten. Is toch anders als orgineel.
srtdeel_binding = oRs('ins_srtdeel_binding').Value;
tekenbaar = oRs('ins_srtdeel_acadsymbol').Value != null;
getekend = oRs('ins_deel_dwgx').Value != null;
xcoord = (copy? null : oRs('ins_deel_x').Value); // Als copy dan xcoord leeg laten. Is toch anders als orgineel.
if (xcoord) xcoord = safe.jsfloat(xcoord);
ycoord = (copy? null : oRs('ins_deel_y').Value); // Als copy dan ycoord leeg laten. Is toch anders als orgineel.
if (ycoord) ycoord = safe.jsfloat(ycoord);
// future: zcoord = oRs('ins_deel_z').Value
org_bind = oRs('ins_alg_ruimte_type_org').Value;
org_bind_key = oRs('ins_alg_ruimte_key_org').Value;
isLendOut = (oRs('ins_alg_ruimte_key_org').Value != null && !copy); // Bij kopie<69>ren is het object nog niet uitgeleend.
alg_ruimte_type = oRs('ins_alg_ruimte_type').Value;
ins_deel_aantal = oRs('ins_deel_aantal').Value;
autonum = oRs('ins_disc_params_autonum').Value;
org_bind = oRs('ins_alg_ruimte_type_org').Value;
org_bind_key = oRs('ins_alg_ruimte_key_org').Value;
isLendOut = (oRs('ins_alg_ruimte_key_org').Value != null && !copy); // Bij kopie<69>ren is het object nog niet uitgeleend.
alg_ruimte_type = oRs('ins_alg_ruimte_type').Value;
ins_deel_aantal = oRs('ins_deel_aantal').Value;
autonum = oRs('ins_disc_params_autonum').Value;
mjb_score1 = oRs('ins_deel_mjb_score1').Value;
mjb_score2 = oRs('ins_deel_mjb_score2').Value;
oRs.close();
if (org_bind_key != null)
@@ -766,6 +773,13 @@ var ins_deel_aantal = 1;
readonly: !this_ins.writeman,
moreinfo: false /* PF: omdat de showmode die heeft, en het label erg lang is*/
});
if (S("mjb_enabled") == '1') {
RWFIELDTR("deel_mjb_score1", "fldshort", L("lcl_ins_deel_mjb_score1"), mjb_score1, {maxlength: 1}); // we kunnen tot 5 hoor ;-)
RWFIELDTR("deel_mjb_score2", "fldshort", L("lcl_ins_deel_mjb_score2"), mjb_score2, {maxlength: 1}); // we kunnen tot 5 hoor ;-)
}
if (!(bind == 'A' || bind == 'P'))
{
RWFIELDTR("xcoord", "fldshort", L("lcl_obj_geoxcoord"), xcoord, {maxlength: 12, datatype: "float"});

View File

@@ -87,6 +87,8 @@ if (obj_key > 0)
{ dbs: "ins_deel_aanmaak", typ: "date", frm: "aanmaakdatum", track: L("lcl_last_action") },
{ dbs: "prs_perslid_key_beh", typ: "key", frm: "ins_manager", track: L("lcl_ins_manager"), foreign: "prs_perslid" },
{ dbs: "ins_deel_opmerking", typ: "varchar", frm: "opmerk"},
{ dbs: "ins_deel_mjb_score1", typ: "varchar", frm: "deel_mjb_score1", track: L("lcl_ins_deel_mjb_score1")},
{ dbs: "ins_deel_mjb_score2", typ: "varchar", frm: "deel_mjb_score2", track: L("lcl_ins_deel_mjb_score2")},
{ dbs: "ins_deel_actief", typ: "check0", frm: "ins_actief", track: L("lcl_ins_active") } ];
if (ins_explode_objects == 0)
@@ -196,6 +198,9 @@ else
{ dbs: "ins_deel_aanmaak", typ: "date", frm: "aanmaakdatum" },
{ dbs: "prs_perslid_key_beh", typ: "key", frm: "ins_manager", foreign: "prs_perslid" },
{ dbs: "ins_deel_opmerking", typ: "varchar", frm: "opmerk"},
// bewust niet: { dbs: "ins_deel_actief", typ: "check0", frm: "ins_actief"}
{ dbs: "ins_deel_mjb_score1", typ: "varchar", frm: "deel_mjb_score1"},
{ dbs: "ins_deel_mjb_score2", typ: "varchar", frm: "deel_mjb_score2"},
{ dbs: "ins_alg_ruimte_key", typ: "key", val: bind_key },
{ dbs: "ins_alg_ruimte_type", typ: "varchar", val: bind } ];

View File

@@ -838,6 +838,12 @@ function ins_list (pautfunction, params)
rst.addColumn(new Column({caption: L("lcl_obj_group"), content: "ins_groep_oms"}));
}
rst.addColumn(new Column({caption: L("lcl_obj_sort"), content: "soort"}));
if (params.mjob)
{
rst.addColumn(new Column({caption: L("lcl_ins_deel_mjb_score1"), content: "ins_deel_mjb_score1", align: "center"}));
rst.addColumn(new Column({caption: L("lcl_ins_deel_mjb_score2"), content: "ins_deel_mjb_score2", align: "center"}));
}
if (anyobjman)
{
rst.addColumn(new Column({caption: L("lcl_ins_manager"), content: "perslid_beh"}));

View File

@@ -65,6 +65,8 @@ sql = "SELECT d.ins_deel_omschrijving" // identificatie
+ " , s.ins_srtdeel_image"
+ " , " + lcl.xsqla('s.ins_srtdeel_eenheid', 's.ins_srtdeel_key')
+ " , d.prs_perslid_key_beh"
+ " , d.ins_deel_mjb_score1"
+ " , d.ins_deel_mjb_score2"
+ " FROM ins_deel d"
+ " , ins_srtdeel s"
+ " , ins_srtgroep g"
@@ -102,6 +104,8 @@ var uitvoertijd_eenheid = oRs('uitvoertijd_eenheid').Value || 'D';
var srtdeel_image = oRs('ins_srtdeel_image').Value;
var srtdeel_eenheid = oRs('ins_srtdeel_eenheid').Value;
var perslid_key_beh = oRs('prs_perslid_key_beh').Value;
var ins_deel_mjb_score1 = oRs('ins_deel_mjb_score1').Value;
var ins_deel_mjb_score2 = oRs('ins_deel_mjb_score2').Value;
var bind_lo = null;
var bind_key_lo = null;
@@ -378,8 +382,14 @@ oRs.Close();
moreinfo: urole != 'fe',
suppressEmpty: true,
readonly: true});
if (lent_out)
if (lent_out)
ROFIELDTR("fld", "", L("lcl_obj_is_lent_out"));
//if (S("mjb_enabled") == '1') {
ROFIELDTR("fld", L("lcl_ins_deel_mjb_score1"), ins_deel_mjb_score1, {suppressEmpty: true});
ROFIELDTR("fld", L("lcl_ins_deel_mjb_score2"), ins_deel_mjb_score2, {suppressEmpty: true});
//}
if (getekend)
{
var params = { infoPointer: { Url: "../cad/showroom.asp?rKey=" + bind_key + "&ins_key=" + ins_key,

View File

@@ -500,14 +500,19 @@ var transitParam = buildTransitParam(["disc", "srtgroep", "srtdeel", "srtcontrol
function fnrowClass(oRs)
{
var lclass = "";
if (oRs("ins_deel_mjb_score1").Value != null)
lclass += safe.htmlattr("dcscore"+oRs("ins_deel_mjb_score1").Value); // nog trimmen ofzo?
if (!fulldetails)
return "";
return lclass;
var scen_key = oRs("ins_scenario_key").Value;
var lclass = scen_key == 1 && oRs("ins_srtcontroledl_xcp_key").Value != null? "mjbxcp" : "mjbstd";
lclass += (scen_key == 1 && oRs("ins_srtcontroledl_xcp_key").Value != null? " mjbxcp" : " mjbstd");
if (scen_key > 1)
lclass += " scenerized1";
if (oRs("isPlanned").Value == 1)
lclass += " mjbplanned";
return lclass;
}
@@ -759,6 +764,8 @@ var transitParam = buildTransitParam(["disc", "srtgroep", "srtdeel", "srtcontrol
rst.addColumn(new Column({caption: L("lcl_ins_object"), content: fnDeel}));
rst.addColumn(new Column({caption: L("lcl_amount"), content: "ins_deel_aantal", datatype: "float"}));
rst.addColumn(new Column({caption: L("lcl_obj_unit"), content: "ins_srtdeel_eenheid"}));
rst.addColumn(new Column({caption: L("lcl_ins_deel_mjb_score1"), content: "ins_deel_mjb_score1", align: "center"}));
rst.addColumn(new Column({caption: L("lcl_ins_deel_mjb_score2"), content: "ins_deel_mjb_score2", align: "center"}));
}
if (fulldetails)
{

View File

@@ -3443,9 +3443,8 @@ li.mk:hover span.menukop {
li.mi {
font-size: 0.9em;
line-height: 1.85em;
background-color: #fff;
background-color: transparent;
opacity: 1;
color: #888; /*kan dat altijd?*/
}
.menuDropdown li.mi {
background-color:==menuitemhovercolor==!important;
@@ -4539,6 +4538,9 @@ td.kpidetails {
.mjbplanned td {
background-color: #FCF2E5;
}
.dcscore1 td , .dcscore2 td { color: #07B907; }
.dcscore3 td , .dcscore4 td { color: #FFAB00; }
.dcscore5 td , .dcscore6 td { color: #F00; }
.fcltscenario, .fcltactsit {
font-weight: bold;