a broker system for Supercredit
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

171 lignes
5.8KB

  1. var dashboard = {
  2. "type": "wide",
  3. "css": "dashboard",
  4. "rows": [
  5. { "view": "toolbar", "css": "webix_dark", "padding": { "right": 10, "left": 10 },
  6. "elements": [
  7. { "view": "menu", "id": "menu", "subMenuPos": "bottom", "submenuConfig": { "autowidth": true },
  8. "data": [
  9. {
  10. "value": "SFM",
  11. "icon": "wxi-dots",
  12. "submenu": [
  13. { "value": "Summary", "icon": "wxi-calendar" , "href": "summary.html"},
  14. { "value": "Pending Jobs", "icon": "mdi mdi-notebook-check", "href": "pending_job.html" },
  15. { "value": "Mass Mailing", "icon": "mdi mdi-email", "href": "mass_mailing.html" },
  16. { "$template": "Separator" },
  17. { "value": "Logout", "icon": "mdi mdi-exit-run", "href" : "login.html" }
  18. ]
  19. },
  20. {
  21. "value": "Loans",
  22. "autowidth": true,
  23. "icon": "mdi mdi-bank-transfer",
  24. "submenu": {
  25. "data": [
  26. {
  27. "value": "Add", "icon": "mdi mdi-table-column-plus-before" ,
  28. "href" : "javascript:loan_add_popup.show();"
  29. },
  30. { "$template": "Separator" },
  31. { "value": "Export", "icon": "mdi mdi-file-export" , "href": "export.html"},
  32. { "value": "Import", "icon": "mdi mdi-file-upload" , "href": "import.html"},
  33. { "$template": "Separator" },
  34. { "value": "New", "icon": "mdi mdi-file-export", "badge": "20" , "href" : "transaction_new.html"},
  35. { "value": "Submitted", "icon": "mdi mdi-file-upload", "badge": "50", "href" : "transaction_submit.html" },
  36. { "value": "Approved", "icon": "mdi mdi-file-upload", "badge": "35" ,"href" : "transaction_submit.html"},
  37. { "value": "Rejected", "icon": "mdi mdi-file-upload", "badge": "10" , "href" : "transaction_submit.html"},
  38. { "value": "Settled", "icon": "mdi mdi-file-upload", "badge": "99" ,"href" : "transaction_submit.html"}
  39. ]
  40. }
  41. },
  42. {
  43. "value": "Clients",
  44. "icon": "mdi mdi-account-supervisor-circle",
  45. "submenu": [
  46. { "value": "Add", "icon": "mdi mdi-account-plus" ,"href" : "transaction_submit.html"},
  47. { "value": "Search", "icon": "mdi mdi-account-search" ,"href" : "transaction_submit.html"},
  48. { "value": "Broadcast", "icon": "mdi mdi-account-off" ,"href" : "transaction_submit.html"}
  49. ]
  50. },
  51. {
  52. "value": "Broker",
  53. "icon": "mdi mdi-account-details",
  54. "submenu": [
  55. { "value": "Add", "icon": "mdi mdi-account-plus" ,"href" : "transaction_submit.html"},
  56. { "value": "Search", "icon": "mdi mdi-account-search" ,"href" : "transaction_submit.html"},
  57. { "$template": "Separator" },
  58. { "value": "Broadcast", "icon": "mdi mdi-account-off" ,"href" : "transaction_submit.html"},
  59. { "$template": "Separator" },
  60. { "value": "Unpaid", "icon": "mdi mdi-file-upload","href" : "transaction_submit.html" }
  61. ]
  62. }
  63. ],
  64. "type": { "subsign": true },
  65. "height": 0
  66. },
  67. { "view": "label", "label": "SuperCredit ", "align": "right", "height": 0 }
  68. ]
  69. },
  70. {
  71. "cols": [
  72. {
  73. "rows": [
  74. { "label": "Staff and Brokers", "view": "label", "height": 38 },
  75. {
  76. "view": "list",
  77. "height": 0,
  78. "template" :"#value#",
  79. "url" : "data/staff.json"
  80. },
  81. { "label": "Performance Summary", "view": "label", "height": 38 },
  82. {
  83. "url": "data/chart.json",
  84. "type": "pie3D",
  85. "xAxis": "#value#",
  86. "yAxis": {},
  87. "view": "chart",
  88. "height": 229
  89. }
  90. ],
  91. "width": 248
  92. },
  93. {
  94. "width":0 ,
  95. "rows" : [
  96. {
  97. "view": "datatable",
  98. "columns": [
  99. { "id": "funder", "header": "Funder", "fillspace": true, "sort": "string" },
  100. { "id": "customer", "header": "Customers", "sort": "string", "width": 200 },
  101. { "id": "settlement", "header": "Settlement date", "sort": "string" },
  102. { "id": "loanamount", "header": "Loan Amount", "sort": "string" },
  103. {
  104. "id": "commission",
  105. "header": "Commission Margin",
  106. "sort": "string",
  107. "width": 200,
  108. "fillspace": false,
  109. "hidden": false,
  110. "css": "{'text-align':'center'}"
  111. },
  112. {
  113. "id": "net",
  114. "header": "Net Amount",
  115. "sort": "string",
  116. "width": 150,
  117. "fillspace": false,
  118. "hidden": false
  119. },
  120. { "id": "gst", "header": "GST", "fillspace": false, "hidden": false },
  121. { "id": "gross", "header": "Gross Amount", "fillspace": false, "hidden": false },
  122. { "id": "pay2broker", "header": "Pay to Broker", "width": 200, "fillspace": false, "hidden": false }
  123. ],
  124. "select": true,
  125. "scrollX": false,
  126. "url" : "data/loan.json",
  127. "width": 0
  128. },
  129. {
  130. "view": "datatable",
  131. "sort": false,
  132. "scroll" : false,
  133. "columns": [
  134. { "id": "funder", "header": "", "fillspace": true, "sort": "string" },
  135. { "id": "customer", "header": "", "sort": "string", "width": 200 },
  136. { "id": "settlement", "header": " ", "sort": "string" },
  137. { "id": "loanamount", "header": " ", "sort": "string" },
  138. {
  139. "id": "commission",
  140. "header": " ",
  141. "sort": "string",
  142. "width": 200,
  143. "fillspace": false,
  144. "hidden": false,
  145. "css": "{'text-align':'center'}"
  146. },
  147. {
  148. "id": "net",
  149. "header": " ",
  150. "sort": "string",
  151. "width": 100,
  152. "fillspace": false,
  153. "hidden": false
  154. },
  155. { "id": "gst", "header": "", "fillspace": false, "hidden": false },
  156. { "id": "gross", "header": "", "fillspace": false, "hidden": false },
  157. { "id": "pay2broker", "header": "Total", "width": 200, "fillspace": false, "hidden": false }
  158. ],
  159. "height": 100,
  160. "url" : "data/loan_total.json"
  161. }
  162. ]
  163. },
  164. ]
  165. }
  166. ]
  167. };
  168. webix.ui(dashboard);