Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sap.ui.define([], function () {
- "use strict";
- return {
- eStatus: function (emplStatus) {
- var resourceBundle = this.getView().getModel("i18n").getResourceBundle();
- switch (emplStatus) {
- case 0:
- return resourceBundle.getText("emplStatus0");
- case 1:
- return resourceBundle.getText("emplStatus1");
- case 2:
- return resourceBundle.getText("emplStatus2");
- default:
- return emplStatus;
- }
- }
- };
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement