Guest User

Untitled

a guest
Feb 6th, 2018
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. <?page title="Order Detail" contentType="text/html;charset=UTF-8"?>
  2. <zk>
  3. <window width="400px" title="OrderDetail" border="normal" apply="org.zkoss.bind.BindComposer"
  4. viewModel="@id('vm') @init('vmd.OrderDetailsVmd')">
  5. <vlayout>
  6. <hlayout>
  7. <button label="Back" onClick="@command('back')" width="100px"/>
  8. <button label="Save" onClick="@command('save')" width="100px"/>
  9. </hlayout>
  10. </vlayout>
  11.  
  12. <separator></separator>
  13. <separator></separator>
  14. <grid>
  15. <columns>
  16. <column label="" width="100px"/>
  17. <column label="" width="300px"/>
  18. </columns>
  19. <rows>
  20. <row>
  21. <label value="Order Id"/>
  22. <textbox constraint="no empty : harus diisi" value="@load(vm.orderDto.orderId) @save(vm.orderDto.orderId)"
  23. readonly="@load(vm.orderDto.orderId eq null ? false:true)"/>
  24. </row>
  25.  
  26. <row>
  27. <label value="Customer Name"/>
  28. <combobox model="@load(vm.customerDtos)" selectedItem="@bind(vm.customerDto)" value="@load(vm.customerDto.name)">
  29. <template name="model">
  30. <comboitem label="@load(each.name)" value="@load(each.id)"/>
  31. </template>
  32. </combobox>
  33. </row>
  34.  
  35. <row>
  36. <label value="Total"/>
  37. <intbox value="@bind(vm.orderDto.total)" readonly="true"/>
  38. </row>
  39. </rows>
  40. </grid>
  41.  
  42. </window>
  43.  
  44. <window width="400px" title="Employee" border="normal" apply="org.zkoss.bind.BindComposer"
  45. viewModel="@id('vm') @init('vmd.OrderDetailsVmd')">
  46. <vlayout>
  47. <hlayout>
  48. <button label="Add" onClick="@command('addProduk')" width="100px"/>
  49. <button label="Delete" onClick="@command('deleteProduk')" width="100px"/>
  50. </hlayout>
  51. </vlayout>
  52.  
  53. <separator></separator>
  54. <separator></separator>
  55.  
  56. <listbox model="@load(vm.orderDetailsDtos)" selectedItem="@bind(vm.orderDetailsDto)">
  57. <listhead>
  58. <listheader label="Product Name"/>
  59. <listheader label="Price"/>
  60. <listheader label="Qty"/>
  61. <listheader label="Sub Total"/>
  62. </listhead>
  63.  
  64. <template name="model">
  65. <listitem>
  66. <listcell label="@load(each.prodName)"/>
  67. <listcell label="@load(each.prodPrice)"/>
  68. <listcell label="@load(each.prodQty)"/>
  69. <listcell label="@load(each.subTotal)"/>
  70. </listitem>
  71. </template>
  72.  
  73. </listbox>
  74. </window>
  75. </zk>
Add Comment
Please, Sign In to add comment