|
|
@@ -55,16 +55,30 @@ var bootstrap = function ($, learun) { |
|
|
|
code: 'ThisCycle', |
|
|
|
select: function (item) { |
|
|
|
var Cycles = $("#FillingCycle").lrselectGet(); |
|
|
|
if (Cycles != null && Cycles != "" && Cycles != undefined && Cycles == 3) { |
|
|
|
$('#FillingTime').lrDataItemSelect({ code: 'CycleTime' }); |
|
|
|
} else if (Cycles != null && Cycles != "" && Cycles != undefined && Cycles == 2) { |
|
|
|
$('#FillingTime').lrDataItemSelect({ code: 'undefined' }); |
|
|
|
} |
|
|
|
else { |
|
|
|
$('#FillingTime').lrDataItemSelect({ code: 'undefined' }); |
|
|
|
if (Cycles == 3) { |
|
|
|
$('#TimeHide').show(); |
|
|
|
$('#FillingTime1').show(); |
|
|
|
$('#FillingTime2').hide(); |
|
|
|
$('#FillingTime1').lrDataItemSelect({ |
|
|
|
code: 'CycleTime' |
|
|
|
}); |
|
|
|
} else if (Cycles == 2) { |
|
|
|
$('#TimeHide').show(); |
|
|
|
$('#FillingTime1').hide(); |
|
|
|
$('#FillingTime2').show(); |
|
|
|
} else if (Cycles == 1) { |
|
|
|
$('#TimeHide').hide(); |
|
|
|
//$('#FillingTime1').hide(); |
|
|
|
//$('#FillingTime2').hide(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
$('#FillingTime1').lrselect(); |
|
|
|
$('#FillingTime2').lrDataItemSelect({ |
|
|
|
type: 'multiple', |
|
|
|
code: 'CycleTime' |
|
|
|
}); |
|
|
|
$('#FillingTime2').hide(); |
|
|
|
}, |
|
|
|
initData: function () { |
|
|
|
if (!!keyValue) { |
|
|
|