|
|
@@ -33,25 +33,37 @@ var bootstrap = function ($, learun) { |
|
|
|
$('#lrPeople').val(learun.clientdata.get(['userinfo']).realName); |
|
|
|
$('#lrTime').val(learun.formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss')); |
|
|
|
$('#FillingDept').lrDataSourceSelect({ code: 'classdata', value: 'id', text: 'name' }); |
|
|
|
//$('#FillingPeople').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_userid', text: 'f_realname' }); |
|
|
|
$('#FillingCycle').lrDataItemSelect({ |
|
|
|
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: 'CycleTime', |
|
|
|
maxHeight: 200, |
|
|
|
if (Cycles == 3) { |
|
|
|
$('#FillingTime1').show(); |
|
|
|
$('#FillingTime2').hide(); |
|
|
|
$('#FillingTime1').lrDataItemSelect({ |
|
|
|
code: 'CycleTime' |
|
|
|
}); |
|
|
|
//$('#FillingTime').lrDataItemSelect({ code: 'undefined' }); |
|
|
|
} else { |
|
|
|
$('#FillingTime').lrDataItemSelect({ code: 'undefined' }); |
|
|
|
} else if (Cycles == 2) { |
|
|
|
$('#FillingTime1').hide(); |
|
|
|
//$('#FillingTime1').lrDataItemSelect({ code: 'undefined' }); |
|
|
|
$('#FillingTime2').show(); |
|
|
|
//$('#FillingTime2').lrDataItemSelect({ |
|
|
|
// type: 'multiple', |
|
|
|
// code: 'CycleTime' |
|
|
|
//}); |
|
|
|
} else if (Cycles == 1) { |
|
|
|
$('#FillingTime1').show(); |
|
|
|
$('#FillingTime2').hide(); |
|
|
|
$('#FillingTime1').lrDataItemSelect({ code: 'undefined' }); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
$('#lrselect').lrselect(); |
|
|
|
$('#FillingTime1').lrselect(); |
|
|
|
$('#FillingTime2').lrDataItemSelect({ |
|
|
|
type: 'multiple', |
|
|
|
code: 'CycleTime' |
|
|
|
}); |
|
|
|
$('#FillingTime2').hide(); |
|
|
|
}, |
|
|
|
initData: function () { |
|
|
|
if (!!keyValue) { |
|
|
|