Advertisement
Samsul8908

zuL MAP

Apr 11th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.88 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <zk xmlns="http://www.zkoss.org/2005/zul">
  3. <?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
  4. <window width="70%" height="100%" apply="org.zkoss.bind.BindComposer" title="Check Availability On Area" mode="modal" closable="true" viewModel="@id('vm') @init('com.eksad.ddms.gigr.h3.web.viewmodel.checkarea.CheckAvailabilityOnAreaVM')" >
  5. <grid >
  6. <columns>
  7. <column label="" width="100%" height="300px"/>
  8. </columns>
  9. <rows>
  10. <row>
  11. <div width="100%">
  12. <script type="text/javascript" content="zk.googleAPIkey='AIzaSyAFj1s9t7ids-3VPX6io4awRgBOViZPRz4'" />
  13. <gmaps version="3." id="gmaps" width="100%" showZoomCtrl="true" lat="@bind(vm.lat)" lng="@bind(vm.lng)" height="500px" zoom="16" protocol="https" children="@load(vm.ahassAvailables)">
  14. <template name="children">
  15. <gmarker lat="@bind(each.longitute)" lng="@bind(each.latitude)" iconImage="/asset/img/placeholder.png" width="40px" height="40px" open="true" >
  16. <custom-attributes org.zkoss.zul.image.preload="true" />
  17. <attribute name="content">
  18. <![CDATA[
  19. <zk xmlns:w="client">
  20. <span>- ${each.name}</span></br>
  21. <span>- ${each.address}</span></br>
  22. </zk>
  23. ]]>
  24. </attribute>
  25. </gmarker>
  26. </template>
  27. </gmaps>
  28. </div>
  29. </row>
  30. <!-- <row width="100%" >
  31.  
  32. </row>-->
  33. </rows>
  34. </grid>
  35. <space/>
  36. <listbox width="100%" height="300px" model="@load(vm.ahassAvailables)" mold="paging" pageSize="5" emptyMessage="no data found" >
  37. <listhead>
  38. <listheader label="Part Number"/>
  39. <listheader label="Name"/>
  40. <listheader label="Address"/>
  41. <listheader label="Kode"/>
  42. <listheader label="Distance"/>
  43. <listheader label="Acction"/>
  44. </listhead>
  45. <template name="model" var="item">
  46. <listitem visible="@load((item.distance) ne 0 ? 'true' : 'false')">
  47. <listcell label="@bind(item.partNumber)"/>
  48. <listcell label="@bind(item.name)"/>
  49. <listcell label="@bind(item.address)"/>
  50. <listcell label="@bind(item.code)"/>
  51. <listcell label="@bind(c:cat3(item.distance,' - ','KM'))"/>
  52. <listcell >
  53. <button>Create PO</button>
  54. </listcell>
  55. </listitem>
  56. </template>
  57. </listbox>
  58. <space/>
  59. <div align="right">
  60. <button label="Create Hotline Ke Main Dealer">
  61. </button>
  62. </div>
  63. </window>
  64. </zk>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement