Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.86 KB | None | 0 0
  1. <mvc:View controllerName="isasubscriptionsentitlements.isasubscriptionsentitlements_demo.controller.NewSubscription"
  2. xmlns:mvc="sap.ui.core.mvc" xmlns:l="sap.ui.layout" xmlns="sap.m" xmlns:ux="sap.uxap" xmlns:eff="sap.f" xmlns:core="sap.ui.core"
  3. xmlns:f="sap.ui.layout.form">
  4. <ux:ObjectPageLayout id="ObjectPageLayout" enableLazyLoading="true" useIconTabBar="true" showFooter="true">
  5. <ux:headerTitle>
  6. <ux:ObjectPageHeader objectTitle="Subscription: {SubModel>/documentNumber}">
  7. <ux:actions>
  8. <Button text="Upgrade"/>
  9. <Button text="Suspend"/>
  10. <Button text="Cancel"/>
  11. <Button text="Switch Snapshot"/>
  12. </ux:actions>
  13. </ux:ObjectPageHeader>
  14. </ux:headerTitle>
  15. <ux:headerContent>
  16. <l:VerticalLayout>
  17. <eff:Avatar
  18. src="https://ecenta-sb1.us10.revenue.cloud.sap/AS25YMW35UEWVJ7ACCOIUNQHNKEKBFWV/webapps/customers-webapp/images/customer_placeholder.svg"
  19. displaySize="XL" displayShape="Circle" showBorder="true"/>
  20. </l:VerticalLayout>
  21. <l:VerticalLayout>
  22. <ObjectStatus title="{i18n>cust}" text="{CustomerModel>/corporateInfo/company}"/>
  23. <ObjectStatus title="{i18n>contact}" text=""/>
  24. <ObjectStatus title="{i18n>customerEmail}" text="{CustomerModel>/defaultAddress/email}"/>
  25. <ObjectStatus title="{i18n>customerPhone}" text="{CustomerModel>/defaultAddress/phone}"/>
  26. </l:VerticalLayout>
  27. <l:VerticalLayout>
  28. <ObjectStatus title="{i18n>validFrom}"
  29. text="{path: 'SubModel>/validFrom', type: 'sap.ui.model.type.Date', formatOptions: { source: { pattern: 'yyyy-MM-ddTHH:mm:ss.SSSZ' }, pattern: 'MMM dd, yyyy' } }"/>
  30. <ObjectStatus title="{i18n>ExpiresOn}"
  31. text="{path: 'SubModel>/expiresOn', type: 'sap.ui.model.type.Date', formatOptions: { source: { pattern: 'yyyy-MM-ddTHH:mm:ss.SSSZ' }, pattern: 'MMM dd, yyyy' } }"/>
  32. </l:VerticalLayout>
  33. <l:VerticalLayout>
  34. <ObjectStatus title="Snapshot On"
  35. text="{path: 'SubModel>/snapshots/0/effectiveDate', type: 'sap.ui.model.type.Date', formatOptions: { source: { pattern: 'yyyy-MM-ddTHH:mm:ss.SSSZ' }, pattern: 'MMM dd, yyyy' }}"/>
  36. <ObjectStatus title="{i18n>subMarket}" text="{SubModel>/market/id}"/>
  37. <ObjectStatus title="{i18n>timeZone}" text="{SubModel>/market/timeZone}"/>
  38. </l:VerticalLayout>
  39. </ux:headerContent>
  40. <ux:sections>
  41. <ux:ObjectPageSection title="General Info">
  42. <ux:subSections>
  43. <ux:ObjectPageSubSection>
  44. <VBox>
  45. <f:Form id="customerForm" editable="false">
  46. <f:title>
  47. <core:Title text="Customer Information"/>
  48. </f:title>
  49. <f:layout>
  50. <f:ColumnLayout columnsM="2" columnsL="3" columnsXL="4"/>
  51. </f:layout>
  52. <f:formContainers>
  53. <f:FormContainer>
  54. <f:formElements>
  55. <f:FormElement visible="true">
  56. <f:label>
  57. <Label text="Customer ID" required="true" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  58. </f:label>
  59. <f:fields>
  60. <Input value="{SubModel>/customer/id}" width="40%" change="onCustomerSelected"/>
  61. </f:fields>
  62. </f:FormElement>
  63. <f:FormElement visible="true">
  64. <f:label>
  65. <Label text="Company" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  66. </f:label>
  67. <f:fields>
  68. <Text text="{CustomerModel>/corporateInfo/company}"/>
  69. </f:fields>
  70. </f:FormElement>
  71. <f:FormElement visible="true">
  72. <f:label>
  73. <Label text="Contact Name" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  74. </f:label>
  75. <f:fields>
  76. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  77. </f:fields>
  78. </f:FormElement>
  79. <f:FormElement visible="true">
  80. <f:label>
  81. <Label text="Email" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  82. </f:label>
  83. <f:fields>
  84. <Text text="{CustomerModel>/defaultAddress/email}"/>
  85. </f:fields>
  86. </f:FormElement>
  87. <f:FormElement visible="true">
  88. <f:label>
  89. <Label text="Address" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  90. </f:label>
  91. <f:fields>
  92. <Text
  93. text="{CustomerModel>/defaultAddress/houseNumber} {CustomerModel>/defaultAddress/street} {CustomerModel>/defaultAddress/Leipzig} {CustomerModel>/defaultAddress/country}"/>
  94. </f:fields>
  95. </f:FormElement>
  96. </f:formElements>
  97. </f:FormContainer>
  98. </f:formContainers>
  99. </f:Form>
  100. <f:Form editable="false">
  101. <f:title>
  102. <core:Title text="Market"/>
  103. </f:title>
  104. <f:layout>
  105. <f:ColumnLayout columnsM="2" columnsL="2" columnsXL="3"/>
  106. </f:layout>
  107. <f:formContainers>
  108. <f:FormContainer title="Market">
  109. <f:formElements>
  110. <f:FormElement visible="true">
  111. <f:label>
  112. <Label text="Market" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  113. </f:label>
  114. <f:fields>
  115. <Text text="Europe" width="40%"/>
  116. </f:fields>
  117. </f:FormElement>
  118. <f:FormElement visible="true">
  119. <f:label>
  120. <Label text="Time Zone" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  121. </f:label>
  122. <f:fields>
  123. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  124. </f:fields>
  125. </f:FormElement>
  126. </f:formElements>
  127. </f:FormContainer>
  128. </f:formContainers>
  129. </f:Form>
  130. <f:Form editable="false">
  131. <f:title>
  132. <core:Title text="Billing"/>
  133. </f:title>
  134. <f:layout>
  135. <f:ColumnLayout columnsM="2" columnsL="2" columnsXL="3"/>
  136. </f:layout>
  137. <f:formContainers>
  138. <f:FormContainer title="Market">
  139. <f:formElements>
  140. <f:FormElement visible="true">
  141. <f:label>
  142. <Label text="Bill Split Element" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  143. </f:label>
  144. <f:fields>
  145. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  146. <Input width="40%" change="onBillSplitSelected" value="{SubModel>/billSplitElement}"/>
  147. </f:fields>
  148. </f:FormElement>
  149. <f:FormElement visible="true">
  150. <f:label>
  151. <Label text="Billing Cycle" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  152. </f:label>
  153. <f:fields>
  154. <Text text="{SubModel>/billingCycle}"/>
  155. </f:fields>
  156. </f:FormElement>
  157. <f:FormElement visible="true">
  158. <f:label>
  159. <Label text="Next Scheduled Billing Date" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  160. </f:label>
  161. <f:fields>
  162. <Text
  163. text="{ path: 'SubModel>/nextScheduledBillingDate' , type: 'sap.ui.model.type.Date', formatOptions: { source: { pattern: 'yyyy-MM-ddTHH:mm:ss.SSSZ' }, pattern: 'MMM dd, yyyy' } }"/>
  164. </f:fields>
  165. </f:FormElement>
  166. <f:FormElement visible="true">
  167. <f:label>
  168. <Label text="Billing Cycle Reference Date" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  169. </f:label>
  170. <f:fields>
  171. <Text
  172. text="{path: 'SubModel>/billingCycleReferenceDate' , type: 'sap.ui.model.type.Date', formatOptions: { source: { pattern: 'yyyy-MM-ddTHH:mm:ss.SSSZ' }, pattern: 'MMM dd, yyyy' } }"/>
  173. </f:fields>
  174. </f:FormElement>
  175. <f:FormElement visible="true">
  176. <f:label>
  177. <Label text="Bill Recurring Charges Together" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  178. </f:label>
  179. <f:fields>
  180. <!--<Text text="{SubModel>/billingCycle}"/>-->
  181. </f:fields>
  182. </f:FormElement>
  183. </f:formElements>
  184. </f:FormContainer>
  185. </f:formContainers>
  186. </f:Form>
  187. <f:Form editable="false">
  188. <f:title>
  189. <core:Title text="Subscription Terms"/>
  190. </f:title>
  191. <f:layout>
  192. <f:ColumnLayout columnsM="2" columnsL="3" columnsXL="4"/>
  193. </f:layout>
  194. <f:formContainers>
  195. <f:FormContainer title="Cancellation Policy">
  196. <f:FormElement visible="true">
  197. <f:label>
  198. <Label text="Withdrawal Period" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  199. </f:label>
  200. <f:fields>
  201. <Text text="{SubModel>/cancellationPolicy/withdrawalPeriod} "/>
  202. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  203. </f:fields>
  204. </f:FormElement>
  205. <f:FormElement visible="true">
  206. <f:label>
  207. <Label text="Withdrawal Period Start" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  208. </f:label>
  209. <f:fields>
  210. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  211. <!--add formater to check if the withdrawl start date exists/ if not change it to createdAt?-->
  212. </f:fields>
  213. </f:FormElement>
  214. <f:FormElement visible="true">
  215. <f:label>
  216. <Label text="Withdrawal Period End" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  217. </f:label>
  218. <f:fields>
  219. <Text
  220. text="{path: 'SubModel>/cancellationPolicy/withdrawalPeriodEndDate' , type: 'sap.ui.model.type.Date', formatOptions: { source: { pattern: 'yyyy-MM-ddTHH:mm:ss.SSSZ' }, pattern: 'MMM dd, yyyy' } }"/>
  221. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  222. </f:fields>
  223. </f:FormElement>
  224. <f:FormElement visible="true">
  225. <f:label>
  226. <Label text="Term of Notice" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  227. </f:label>
  228. <f:fields>
  229. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  230. </f:fields>
  231. </f:FormElement>
  232. <f:FormElement visible="true">
  233. <f:label>
  234. <Label text="Allow Mid-Bill Cycle Expiration" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  235. </f:label>
  236. <f:fields>
  237. <Text text="{SubModel>/cancellationPolicy/allowMidBillCycleExpiration}"/>
  238. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  239. </f:fields>
  240. </f:FormElement>
  241. </f:FormContainer>
  242. <f:FormContainer title="Duration">
  243. <f:FormElement visible="true">
  244. <f:label>
  245. <Label text="Minimum Term" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  246. </f:label>
  247. <f:fields>
  248. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  249. </f:fields>
  250. </f:FormElement>
  251. <f:FormElement visible="true">
  252. <f:label>
  253. <Label text="Minimum Term Start" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  254. </f:label>
  255. <f:fields>
  256. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  257. </f:fields>
  258. </f:FormElement>
  259. <f:FormElement visible="true">
  260. <f:label>
  261. <Label text="Minimum Term End" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  262. </f:label>
  263. <f:fields>
  264. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  265. </f:fields>
  266. </f:FormElement>
  267. </f:FormContainer>
  268. <f:FormContainer title="Renewal">
  269. <f:FormElement visible="true">
  270. <f:label>
  271. <Label text="Renewal Term" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  272. </f:label>
  273. <f:fields>
  274. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  275. </f:fields>
  276. </f:FormElement>
  277. <f:FormElement visible="true">
  278. <f:label>
  279. <Label text="Renewal Term End" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  280. </f:label>
  281. <f:fields>
  282. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  283. </f:fields>
  284. </f:FormElement>
  285. </f:FormContainer>
  286. </f:formContainers>
  287. </f:Form>
  288. <f:Form editable="false">
  289. <f:title>
  290. <core:Title text="Processing Data"/>
  291. </f:title>
  292. <f:layout>
  293. <f:ColumnLayout columnsM="2" columnsL="3" columnsXL="4"/>
  294. </f:layout>
  295. <f:formContainers>
  296. <f:FormContainer title="Subscription Dates">
  297. <f:FormElement visible="true">
  298. <f:label>
  299. <Label text="Valid From" required="true" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  300. </f:label>
  301. <f:fields>
  302. <DatePicker value="{SubModel>/validFrom}" valueFormat="yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" width="40%" change="onValidFChange"/>
  303. </f:fields>
  304. </f:FormElement>
  305. <f:FormElement visible="true">
  306. <f:label>
  307. <Label text="Expires On" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  308. </f:label>
  309. <f:fields>
  310. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  311. </f:fields>
  312. </f:FormElement>
  313. <f:FormElement visible="true">
  314. <f:label>
  315. <Label text="Created" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  316. </f:label>
  317. <f:fields>
  318. <Text
  319. text="{path: 'SubModel>/createdAt' , type: 'sap.ui.model.type.DateTime', formatOptions: { source: { pattern: 'yyyy-MM-ddTHH:mm:ss.SSSZ' }, style: 'long' }}"/>
  320. </f:fields>
  321. </f:FormElement>
  322. <f:FormElement visible="true">
  323. <f:label>
  324. <Label text="Created By" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  325. </f:label>
  326. <f:fields>
  327. <Text text="{SubModel>/createdBy}"/>
  328. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  329. </f:fields>
  330. </f:FormElement>
  331. <f:FormElement visible="true">
  332. <f:label>
  333. <Label text="Changed" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  334. </f:label>
  335. <f:fields>
  336. <Text
  337. text="{path: 'SubModel>/changedAt' , type: 'sap.ui.model.type.DateTime', formatOptions: { source: { pattern: 'yyyy-MM-ddTHH:mm:ss.SSSZ' }, style: 'long' }}"/>
  338. </f:fields>
  339. </f:FormElement>
  340. <f:FormElement visible="true">
  341. <f:label>
  342. <Label text="Changed By" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  343. </f:label>
  344. <f:fields>
  345. <Text text="{SubModel>/changedBy}"/>
  346. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  347. </f:fields>
  348. </f:FormElement>
  349. </f:FormContainer>
  350. <f:FormContainer title="Snapshot Data">
  351. <f:FormElement visible="true">
  352. <f:label>
  353. <Label text="Preceding Document ID" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  354. </f:label>
  355. <f:fields>
  356. <Text text="{SubModel>/snapshots/0/precedingDocument/documentNumber}"/>
  357. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  358. </f:fields>
  359. </f:FormElement>
  360. <f:FormElement visible="true">
  361. <f:label>
  362. <Label text="Created" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  363. </f:label>
  364. <f:fields>
  365. <Text
  366. text="{path: 'SubModel>/snapshots/0/createdAt' , type: 'sap.ui.model.type.DateTime', formatOptions: { source: { pattern: 'yyyy-MM-ddTHH:mm:ss.SSSZ' }, style: 'long' }}"/>
  367. </f:fields>
  368. </f:FormElement>
  369. <f:FormElement visible="true">
  370. <f:label>
  371. <Label text="Created By" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  372. </f:label>
  373. <f:fields>
  374. <Text text="{SubModel>/snapshots/0/createdBy}"/>
  375. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  376. </f:fields>
  377. </f:FormElement>
  378. <f:FormElement visible="true">
  379. <f:label>
  380. <Label text="Effective Date" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  381. </f:label>
  382. <f:fields>
  383. <Text
  384. text="{path: 'SubModel>/snapshots/0/effectiveDate' , type: 'sap.ui.model.type.Date', formatOptions: { source: { pattern: 'yyyy-MM-ddTHH:mm:ss.SSSZ' }, pattern: 'MMM dd, yyyy' } }"/>
  385. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  386. </f:fields>
  387. </f:FormElement>
  388. </f:FormContainer>
  389. <f:FormContainer title="Related Documents">
  390. <f:FormElement visible="true">
  391. <f:label>
  392. <Label text="Quote" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  393. </f:label>
  394. <f:fields>
  395. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  396. </f:fields>
  397. </f:FormElement>
  398. <f:FormElement visible="true">
  399. <f:label>
  400. <Label text="Order" design="Standard" width="100%" textAlign="Begin" textDirection="Inherit"/>
  401. </f:label>
  402. <f:fields>
  403. <!--<Text id="custID" text="{CustomerModel>/customerNumber}"/>-->
  404. </f:fields>
  405. </f:FormElement>
  406. </f:FormContainer>
  407. </f:formContainers>
  408. </f:Form>
  409. </VBox>
  410. </ux:ObjectPageSubSection>
  411. </ux:subSections>
  412. </ux:ObjectPageSection>
  413. <ux:ObjectPageSection title="{i18n>itemlist}">
  414. <ux:subSections>
  415. <ux:ObjectPageSubSection>
  416. <Table updateFinished="onUpdateFinished" items="{SubModel>/snapshots/0/items/}" id="subTable" inset="true" class="sapUiNoContentPadding"
  417. popinLayout="GridSmall" growing="true" growingThreshold="10" growingScrollToLoad="false">
  418. <headerToolbar>
  419. <Toolbar>
  420. <Title level="H2" id="subTableTitle"/>
  421. <ToolbarSpacer/>
  422. <Button class="sortBorder sapUiSizeCompact" icon="sap-icon://add" tooltip="Add Item" press="onAddProduct"/>
  423. </Toolbar>
  424. </headerToolbar>
  425. <columns>
  426. <Column minScreenWidth="Desktop" demandPopin="true">
  427. <Label text="{i18n>item}" design="Bold" wrapping="true"/>
  428. </Column>
  429. <Column minScreenWidth="Desktop" demandPopin="true">
  430. <Label text="{i18n>prdName}" design="Bold" wrapping="true"/>
  431. </Column>
  432. <Column minScreenWidth="Desktop" demandPopin="true">
  433. <Label text="{i18n>prdId}" design="Bold" wrapping="true"/>
  434. </Column>
  435. <Column minScreenWidth="Desktop" demandPopin="true">
  436. <Label text="{i18n>sbscrTyp}" design="Bold" wrapping="true"/>
  437. </Column>
  438. <Column minScreenWidth="Desktop" demandPopin="true">
  439. <Label text="{i18n>RNA}" design="Bold" wrapping="true"/>
  440. </Column>
  441. </columns>
  442. <items>
  443. <ColumnListItem type="Navigation" press="onDetailsView">
  444. <cells>
  445. <Text text="{SubModel>lineNumber}" class="SmallDeviceText"/>
  446. <Text text="{SubModel>product/name}"/>
  447. <Text text="{SubModel>product/code}"/>
  448. <Text text="{SubModel>subscriptionType}"/>
  449. <Text text=""/>
  450. </cells>
  451. </ColumnListItem>
  452. </items>
  453. </Table>
  454. </ux:ObjectPageSubSection>
  455. </ux:subSections>
  456. </ux:ObjectPageSection>
  457. </ux:sections>
  458. <ux:footer>
  459. <Bar design="Auto">
  460. <contentRight>
  461. <Button id="cancel-button" press="onCancel" text="Cancel" iconFirst="true" width="auto" iconDensityAware="false"/>
  462. <Button id="save-button" press="onSubscriptionSave" text="Save" type="Emphasized" iconFirst="true" width="auto" iconDensityAware="false"/>
  463. </contentRight>
  464. </Bar>
  465. </ux:footer>
  466. </ux:ObjectPageLayout>
  467. </mvc:View>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement