AKZA#36031 savepoint. succes-aanduiding nog niet goed

svn path=/Website/trunk/; revision=30531
This commit is contained in:
Peter Feij
2016-09-02 14:24:34 +00:00
parent 14b90997f8
commit 59f7b36756
2 changed files with 46 additions and 63 deletions

View File

@@ -395,17 +395,14 @@ var authparams = user.checkAutorisation("WEB_INSUSE");
function fnCMSuccess(oRs)
{
var CMSuccess = oRs("ins_controlemode_success").Value;
if (CMSuccess != null && CMSuccess == 1)
var dttxt = '<img id="cms' + oRs("ins_deel_key").Value + '"'
+ ' src="../Pictures/success.png" class="ilbutton"'
+ ' style="cursor:pointer"'
+ '>';
else
var dttxt = "";
return "<span style='white-space: nowrap'>"+dttxt+"</span>";
var res = "";
if (oRs("ins_deelsrtcontrole_status").Value == 5 || oRs("ins_deelsrtcontrole_status").Value == 6) {
if (oRs("ins_controlemode_success").Value == null)
res = '<img src="../Pictures/error.png">';
else
res = '<img src="../Pictures/success.png">';
}
return res;
}
function fnVolgende(oRs)

View File

@@ -14,7 +14,7 @@
urole user role (fe, fo, bo, mi)
outputmode behave in an output mode, print to 0 = screen, 1 = printer, 2 = excel, etc.
showall show all objects which meets with the given requirements
inspect Toon ook inspectie kolommen
inspect Toon ook inspectie kolommen (implies actief=1)
inspClosed search for objects inspections wich are verwerkt
inspDone search for objects inspections wich are done
inspBusy search for objects inspections wich are in progress
@@ -53,7 +53,6 @@
insAvail search for objects wich are available
insSuccessY search for inspections which are a success
insSuccessN search for inspections which are not active
actief search for inspections which are active, not active or both
fgraph search for objects for a fgraph search
Context: - INS/ins_search.asp (Search action from bes_search.asp form)
- FGraph (<cust>_Report.asp)
@@ -130,7 +129,6 @@ function ins_list (pautfunction, params)
var insAvail = params.insAvail;
var insSuccessY = params.insSuccessY;
var insSuccessN = params.insSuccessN;
var actief = params.actief;
var embedded = params.embedded;
var tiny = params.tiny || parent_key || koppel_key;
var srtcontrole = params.srtcontrole;
@@ -139,6 +137,7 @@ function ins_list (pautfunction, params)
var donedatefrom = params.donedatefrom;
var donedateto = params.donedateto;
var inspect = params.inspect;
var inacObjIncl = params.inacObjIncl;
var inspClosed = params.inspClosed;
var inspDone = params.inspDone;
var inspBusy = params.inspBusy;
@@ -152,6 +151,9 @@ function ins_list (pautfunction, params)
if (!expObjIncl && !deel)
sql_objincl += " AND (i.ins_deel_vervaldatum IS NULL OR i.ins_deel_vervaldatum > TRUNC(SYSDATE)) ";
if (!inacObjIncl && !deel)
sql_objincl += " AND i.ins_deel_actief = 1 ";
%>
<html>
@@ -872,10 +874,7 @@ function ins_list (pautfunction, params)
+ sqlKenmerkBewerkbaar_where
+ " AND i.ins_alg_ruimte_key = d.prs_afdeling_key"
+ " AND d.prs_bedrijf_key = b.prs_bedrijf_key"
+ " AND i.ins_alg_ruimte_type = 'A'"
+ (actief < 3 // 1=Actief, 2=Niet actief en 3=Beide.
? " AND ins_deel_actief = " + (actief == 1? 1 : 0)
: "");
+ " AND i.ins_alg_ruimte_type = 'A'";
sqlOwnerP = sqlOwner_select
+ sqlKenmerkBewerkbaar_select
@@ -896,10 +895,7 @@ function ins_list (pautfunction, params)
+ " AND i.ins_alg_ruimte_key = p.prs_perslid_key"
+ " AND p.prs_afdeling_key = d.prs_afdeling_key"
+ " AND d.prs_bedrijf_key = b.prs_bedrijf_key"
+ " AND i.ins_alg_ruimte_type = 'P'"
+ (actief < 3 // 1=Actief, 2=Niet actief en 3=Beide.
? " AND ins_deel_actief = " + (actief == 1? 1 : 0)
: "");
+ " AND i.ins_alg_ruimte_type = 'P'";
sqlOwnerCP = sqlOwner_select
+ sqlKenmerkBewerkbaar_select
@@ -918,10 +914,7 @@ function ins_list (pautfunction, params)
+ sqlKenmerkBewerkbaar_where
+ " AND i.ins_alg_ruimte_key = c.prs_contactpersoon_key"
+ " AND c.prs_bedrijf_key = b.prs_bedrijf_key"
+ " AND i.ins_alg_ruimte_type = 'C'"
+ (actief < 3 // 1=Actief, 2=Niet actief en 3=Beide.
? " AND ins_deel_actief = " + (actief == 1? 1 : 0)
: "");
+ " AND i.ins_alg_ruimte_type = 'C'";
}
if (!hasOwner)
@@ -1098,9 +1091,6 @@ function ins_list (pautfunction, params)
if (sqlPosition != "")
sqlPosition += sql_ex;
if (sqlPosition != "" && actief < 3) // 1=Actief, 2=Niet actief en 3=Beide.
sqlPosition += " AND ins_deel_actief = " + (actief == 1? 1 : 0)
if (sqlPosition != "")
{ // we must consider this: if we know that a room is defined (by filter), we must be
// able to improve performance by using that condition, mustn't we?
@@ -1675,28 +1665,29 @@ function ins_list (pautfunction, params)
var res = "";
if ( oRs("res_deel_key").value != null )
{
res= "<span";
if (oRs("res_deel_opmerking").value != null )
res += " title='" + safe.htmlattr(oRs("res_deel_opmerking").value) + "' ";
res += ">" + L("lcl_obj_reservdeel") + "</span>";
if (outputmode == 0 ) {
res= "<span";
if (oRs("res_deel_opmerking").value != null )
res += " title='" + safe.htmlattr(oRs("res_deel_opmerking").value) + "' ";
res += ">" + L("lcl_obj_reservdeel") + "</span>";
}
else
res = L("lcl_yes");
} else {
res = (outputmode == 0 ? "" : L("lcl_no"));
}
return res;
}
function fnUitleenbaar(oRs) {
var res = "";
if ( oRs("ins_srtdeel_uitleenbaar").value==1 ) {
res = L("lcl_obj_uitleensrtdeel");
res = (outputmode == 0 ? L("lcl_obj_uitleensrtdeel") : L("lcl_yes"));
} else {
res = (outputmode == 0 ? "" : L("lcl_no"));
}
return res;
}
function fnVervaldatum(oRs) {
var res = "";
var vervallen = (oRs("ins_deel_vervaldatum").Value != null && new Date(oRs("ins_deel_vervaldatum").Value).getTime() < new Date().midnight());
if (vervallen)
res = toDateString(new Date(oRs("ins_deel_vervaldatum").Value));
return res;
}
function fnInspectie(oRs) // TODO: Of via RowClass
{
@@ -1749,32 +1740,23 @@ function ins_list (pautfunction, params)
function fnCMSuccess(oRs)
{
var CMSuccess = oRs("ins_controlemode_success").Value;
if (CMSuccess != null && CMSuccess == 1)
var dttxt = '<img id="cms' + oRs("ins_deel_key").Value + '"'
+ ' src="../Pictures/success.png" class="ilbutton"'
+ ' style="cursor:pointer"'
+ '>';
var res = "";
if (oRs("ins_controlemode_success").Value == null)
res = '<img src="../Pictures/error.png">';
else
var dttxt = "";
return "<span style='white-space: nowrap'>"+dttxt+"</span>";
res = '<img src="../Pictures/success.png">';
return res;
}
function fnActief(oRs)
{
var actief = oRs("ins_deel_actief").Value;
if (actief != null && actief == 1)
var dttxt = '<img id="cms' + oRs("ins_deel_key").Value + '"'
+ ' src="../Pictures/success.png" class="ilbutton"'
+ ' style="cursor:pointer"'
+ '>';
var res = "";
if (oRs("ins_deel_actief").Value == 1)
res = L("lcl_ins_active");
else
var dttxt = "";
res = L("lcl_ins_not_active");
return "<span style='white-space: nowrap'>"+dttxt+"</span>";
return res;
}
if (koppel_key && ins.func_enabled_deel(koppel_key).canChange) // TODO (popup met objectselector (zoiets als bij meldingen?)
@@ -1886,7 +1868,6 @@ function ins_list (pautfunction, params)
rst.addColumn(new Column({caption: L("ins_controlemode_success"), content: fnCMSuccess}));
rst.addColumn(new Column({caption: L("lcl_ins_controle_srt"), content: "ins_srtcontrole_omschrijving"}));
rst.addColumn(new Column({caption: L("lcl_ins_controle_groep"), content: "groepoms"}));
rst.addColumn(new Column({caption: L("lcl_ins_active"), content: fnActief}));
}
if (!parent_key) {
@@ -1905,8 +1886,13 @@ function ins_list (pautfunction, params)
}
}
if (expObjIncl)
rst.addColumn(new Column({caption: L("lcl_vervallen"), content: fnVervaldatum, align:"center"}));
if (inacObjIncl) {
// alleen als er ook inactieven voorkomen is het zinvol deze kolom te tonen
rst.addColumn(new Column({caption: L("lcl_ins_active"), content: fnActief}));
}
if (!inspect && !fronto) { // kan over gediscussieerd worden
rst.addColumn(new Column({caption: L("lcl_ins_vervaldatum"), content: "ins_deel_vervaldatum", datatype: "date", prettydate: true}));
}
// Acties
if (fronto && authparams.PRSwritelevel < 9) // Ik heb write rechten nodig voor deze acties