FSN#37682 Plato testbevindingen
svn path=/Website/trunk/; revision=30681
This commit is contained in:
@@ -45,7 +45,7 @@ model_ctr_disc_params =
|
||||
"dbs": "ctr_disc_params_ismjob",
|
||||
"label": L("ctr_ismjob"),
|
||||
"typ": "check0",
|
||||
"required": true
|
||||
"readonly": S("mjb_enabled") != 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -189,7 +189,7 @@ function model_ins_srtcontrole()
|
||||
"label": L("ins_srtcontrole_percentage"),
|
||||
"typ": "float"
|
||||
},
|
||||
"btw": {
|
||||
"vat": {
|
||||
"dbs": "fin_btwtabelwaarde_key",
|
||||
"label": L("ins_srtcontrole_btw"),
|
||||
"typ": "key",
|
||||
|
||||
@@ -682,6 +682,10 @@ var ins_deel_aantal = 1;
|
||||
});
|
||||
if (S("ins_explode_objects") == 0)
|
||||
RWFIELDTR("count", "fldshort", L("lcl_count"), ins_deel_aantal, {datatype: "number", readonly: !this_ins.canChangeAlg, required: true});
|
||||
else if(ins_key < 0 || isNext > 0 )
|
||||
{
|
||||
RWFIELDTR("count", "fldshort", L("lcl_count"), 1, {datatype: "number", readonly: !this_ins.canChangeAlg});
|
||||
}
|
||||
RWFIELDTR("opmerk", "fld", L("lcl_ins_opmerking"), opmerk, {maxlength: 320, readonly: !this_ins.canChangeAlg}); %>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
@@ -178,7 +178,7 @@ else
|
||||
// Deactiveren of alle parameter waarden zijn identiek aan de standaard waarden en er is geen groep ingevuld.
|
||||
if (xcp_key < 0) // Nieuwe inspectie.
|
||||
{ // Geen nieuw record aanmaken.
|
||||
var result = { success: true, srtcontroledl_xcp_key: xcp_key, warning: L("lcl_ins_controle_identical_values") };
|
||||
var result = { success: true, srtcontroledl_xcp_key: xcp_key, toaster: L("lcl_ins_controle_identical_values") };
|
||||
}
|
||||
else
|
||||
{ // Dan kan het record verwijderd worden.
|
||||
|
||||
@@ -26,11 +26,15 @@ scaffolding(this_model,
|
||||
"list": {
|
||||
"columns": [
|
||||
"id",
|
||||
"name"
|
||||
"name",
|
||||
"inspection_type",
|
||||
"ismjob"
|
||||
]
|
||||
},
|
||||
"edit": {
|
||||
"modal": true
|
||||
"wrap": {
|
||||
"frames": [{ url: "fac_functie.asp?mode=list&ins_discipline={0}",
|
||||
autfunction: "WEB_PRSSYS"
|
||||
}]
|
||||
}
|
||||
});
|
||||
%>
|
||||
|
||||
@@ -28,7 +28,6 @@ scaffolding(this_model,
|
||||
"requires": {
|
||||
"js": [
|
||||
"../mgt/srtinstallatieselector.js",
|
||||
"../mgt/ins_srtcontrole.js",
|
||||
"../mgt/mgt_tools.js"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
/*
|
||||
$Revision$
|
||||
$Id$
|
||||
*/
|
||||
|
||||
var changed_bits = 0;
|
||||
var changed_mode = 0;
|
||||
|
||||
@@ -8,16 +13,12 @@ $(document).ready(function () {
|
||||
|
||||
function init_srtcontrole()
|
||||
{
|
||||
$("#inspection_mode").change(function() {change_mode(); });
|
||||
$("#unit").change(function() {change_unit(); });
|
||||
$("#_moment").click(function() {SelectBits(); });
|
||||
$("#ctr_discipline").change(function() {change_ctr_discipline(); });
|
||||
$("#inspection_mode").change(change_mode);
|
||||
$("#unit").change(change_unit);
|
||||
$("#_moment").click(SelectBits);
|
||||
$("#ctr_discipline").change(change_ctr_discipline);
|
||||
|
||||
var controlemode = $("#inspection_mode").val() == 0;
|
||||
if (!controlemode)
|
||||
{
|
||||
$("#_moment").parent().parent().hide();
|
||||
}
|
||||
change_ctr_discipline(); // initieel goed zetten.
|
||||
}
|
||||
|
||||
function change_mode()
|
||||
@@ -36,19 +37,20 @@ function change_unit()
|
||||
}
|
||||
|
||||
function callback_ctr_info(data, textStatus)
|
||||
{
|
||||
if (textStatus == "success")
|
||||
{
|
||||
if (data.ismjob)
|
||||
{
|
||||
$("#unit").val(4); // Jaarlijks.
|
||||
$("#unit").attr('disabled', true);
|
||||
$("#unit").prop('disabled', true);
|
||||
$("#inspection_mode").val(1); // Interval
|
||||
$("#inspection_mode").prop('disabled', true);
|
||||
}
|
||||
else
|
||||
$("#unit").attr('disabled', false);
|
||||
{
|
||||
$("#unit").prop('disabled', false);
|
||||
$("#inspection_mode").prop('disabled', false);
|
||||
}
|
||||
else
|
||||
alert("callback_ctr_info: " + textStatus);
|
||||
change_mode();
|
||||
}
|
||||
|
||||
function change_ctr_discipline()
|
||||
@@ -65,7 +67,7 @@ function SelectBits()
|
||||
var proturl = "../ins/ins_bitsform.asp"
|
||||
+ "?eenheid=" + $("#unit").val()
|
||||
+ "&bits=" + $("#bits").val();
|
||||
parent.FcltMgr.openModalDetail(proturl, "Select moment",
|
||||
parent.FcltMgr.openModalDetail(proturl, L("ins_srtcontrole_moment"),
|
||||
{ callback: function (data)
|
||||
{ if (data.eenheid >= 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user