Files
icehrm/web/modules/reports/lib.js
2018-04-29 17:46:42 +02:00

35 lines
590 B
JavaScript

/**
* Author: Thilina Hasantha
*/
/**
* UserReportAdapter
*/
function UserReportAdapter(endPoint,tab,filter,orderBy) {
this.initAdapter(endPoint,tab,filter,orderBy);
this._construct();
}
UserReportAdapter.inherits(ReportAdapter);
UserReportAdapter.method('renderForm', function(object) {
var that = this;
this.processFormFieldsWithObject(object);
if(this.remoteFieldsExists){
var cb = function(){
that.renderFormNew(object);
};
this.initFieldMasterData(cb);
}else{
this.initFieldMasterData();
that.renderFormNew(object);
}
this.currentReport = object;
});