Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.01 KB | None | 0 0
  1. jQuery.sap.require("FactSheets.custom.StandardTileInfo");
  2. sap.ui.jsview("FactSheets.views.VersioningRoots.BP.footprint",
  3. {
  4.  
  5. getControllerName : function()
  6. {
  7. return "FactSheets.controllers.VersioningRoots.BP.footprint";
  8. },
  9.  
  10. createContent : function(oController)
  11. {
  12. var displayFragment = new sap.m.Panel("DisplayTimeFrame_PackObjectDetailsss",{});
  13.  
  14. var oPage = new sap.m.Page({
  15. title: "hai valica ca poti"
  16. });
  17.  
  18. var oContainer = new sap.m.SplitContainer({
  19. id: this.createId("splitContainer"),
  20. initialDetail: 'detail',
  21. initialMaster: 'master',
  22.  
  23. detailPages:[
  24. new sap.m.Page({
  25. id: this.createId("detail"),
  26. title: 'Select Dimentions & Measures',
  27.  
  28.  
  29. content:[
  30. // new sap.m.Button({
  31. // text: "DETAIL DETAIL DETAIL",
  32. // press: [oController.buttonPress, this]
  33. // }),
  34. new sap.m.RadioButtonGroup({
  35. id:this.createId("radioButtonGroup"),
  36. columns: 3,
  37. width: '100%',
  38. class: "sapUiMediumMarginBottom",
  39. select: [oController.onRadioButtonSelect, this],
  40. buttons:[
  41. new sap.m.RadioButton({
  42. text: 'include one Sublevel'
  43. }),
  44. new sap.m.RadioButton({
  45. text: 'show Measurement Objects'
  46. }),
  47. new sap.m.RadioButton({
  48. text: 'compare with total'
  49. }),
  50. new sap.m.RadioButton({
  51. text: 'include 2 Sublevels'
  52. }),
  53. new sap.m.RadioButton({
  54. text: 'show Traffic(average)'
  55. }),
  56. new sap.m.RadioButton({
  57. text: 'compare with Industry'
  58. }),
  59. new sap.m.RadioButton({
  60. text: 'compare with other Business Partner'
  61. }),
  62.  
  63. ]
  64. }),
  65. new sap.m.SearchField({
  66. id:this.createId("inputField"),
  67. placeholder: 'compare with ...',
  68. enableSuggestions: true,
  69. width: '20%',
  70. search:[oController.onSearch, this],
  71. visible: false
  72. }),
  73. // new sap.viz.ui5.controls.VizFrame({
  74. // id: this.createId("CustomersPerIndustryChartt"),
  75. // busy: true,
  76. // visible: true,
  77. // renderComplete: function(e)
  78. // {
  79. // //set busy indicator to false
  80. // this.setBusy(false);
  81. // },
  82. // layoutData : new sap.ui.layout.GridData({
  83. // span : "L8 M12 S12"
  84. // })
  85. // }).addStyleClass('CustomersPerIndustryChartStyle'),
  86. new sap.viz.ui5.Treemap({
  87. id : this.createId("treemap"),
  88. busy: true,
  89. visible: true,
  90. width : "100%",
  91. height : "600px",
  92. layoutData: new sap.ui.layout.GridData({
  93. span: "L8 M12 S12"
  94. }),
  95. title : {
  96. visible : true,
  97. text : 'TreeMap'
  98. }
  99. })
  100.  
  101. ]
  102. })
  103. ],
  104.  
  105. masterPages:[
  106. new sap.m.Page({
  107. id: this.createId("master"),
  108. title:'master1',
  109. content:[
  110.  
  111. // new sap.m.Button({
  112. // id: this.createId("masterButton"),
  113. // text: "MASTER MASTER MASTER",
  114. // press: [oController.buttonPress, this]
  115. // }),
  116. displayFragment,
  117.  
  118.  
  119.  
  120. new sap.m.Table({
  121.  
  122. id: this.createId("table"),
  123. busy: false,
  124. headerToolbar:[
  125. new sap.m.Toolbar({
  126. content:[
  127. new sap.m.Title({
  128. text: 'Products'
  129. }),
  130. new sap.m.Button({
  131. tooltip: 'View Sort Settings',
  132. icon: 'sap-icon://sort',
  133. press:[oController.handleSortButtonPress, this]
  134. }),
  135. new sap.m.Button({
  136. tooltip: 'View Filter Settings',
  137. icon: 'sap-icon://filter',
  138. press:[oController.hanleFilterButtonPress, this]
  139. }),
  140. new sap.m.Button({
  141. tooltip: 'View Group Settings',
  142. icon: 'sap-icon://group-2',
  143. press:[oController.handleGroupButtonPress, this]
  144. }),
  145. ]
  146. })
  147. ],
  148. columns:[
  149. new sap.m.Column({
  150. header: [
  151. new sap.m.Text({
  152. id: 'PACKAGE',
  153. text : 'PACKAGE'
  154. })
  155. ]
  156. }),
  157. new sap.m.Column({
  158. header: [
  159. new sap.m.Text({
  160. id: 'mos',
  161. text : 'SENDING MOs'
  162. })
  163. ]
  164. }),
  165. new sap.m.Column({
  166. header: [
  167. new sap.m.Text({
  168. id: 'TRAFFIC',
  169. text : 'TRAFFIC'
  170. })
  171. ]
  172. })
  173. ],
  174. items:[
  175. new sap.m.ColumnListItem({
  176.  
  177. type: 'Active',
  178. cells:[
  179. new sap.m.Text({
  180. text: 'primul'
  181. }),
  182. new sap.m.Text({
  183. text: 'primul'
  184. }),
  185. new sap.m.Text({
  186. text: 'primu'
  187. })
  188.  
  189. ]
  190. })
  191. ]
  192. })
  193.  
  194.  
  195. ]
  196. })
  197. ]
  198.  
  199. })
  200. return oContainer;
  201.  
  202.  
  203.  
  204. }
  205.  
  206. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement