Advertisement
ignatov

Untitled

Mar 27th, 2020
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sap.ui.define([], function () {
  2.     "use strict";
  3.     return {
  4.         eStatus: function (emplStatus) {
  5.             var resourceBundle = this.getView().getModel("i18n").getResourceBundle();
  6.             switch (emplStatus) {
  7.                 case 0:
  8.                     return resourceBundle.getText("emplStatus0");
  9.                 case 1:
  10.                     return resourceBundle.getText("emplStatus1");
  11.                 case 2:
  12.                     return resourceBundle.getText("emplStatus2");
  13.                 default:
  14.                     return emplStatus;
  15.             }
  16.         }
  17.     };
  18. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement