Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var hr_CourseUtil = Class.create();
- hr_CourseUtil.prototype = {
- initialize: function() {
- },
- /*
- * Return an array with training days
- * @param sid The sys_id of the training record
- */
- getTrainingDays : function(sid){
- var trdArray = [];
- var trd = new GlideRecord('sn_hr_core_training_day');
- trd.addQuery('u_training', sid);
- trd.query();
- while(trd.next()){
- trdArray.push(trd.u_date);
- }
- return trdArray;
- },
- getHoi : function(){
- return 'hoi';
- },
- type: 'hr_CourseUtil'
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement