a broker system for Supercredit
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

186 lines
6.1KB

  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": "New", "icon": "mdi mdi-file-export", "badge": "20" , "href" : "transaction_new.html"},
  32. { "value": "Submitted", "icon": "mdi mdi-file-upload", "badge": "50", "href" : "transaction_submit.html" },
  33. { "value": "Approved", "icon": "mdi mdi-file-upload", "badge": "35" ,"href" : "transaction_submit.html"},
  34. { "value": "Rejected", "icon": "mdi mdi-file-upload", "badge": "10" , "href" : "transaction_submit.html"},
  35. { "value": "Settled", "icon": "mdi mdi-file-upload", "badge": "99" ,"href" : "transaction_submit.html"}
  36. ]
  37. }
  38. },
  39. {
  40. "value": "Trails",
  41. "autowidth": true,
  42. "icon": "mdi mdi-bank-transfer",
  43. "submenu": {
  44. "data": [
  45. {
  46. "value": "List all", "icon": "mdi mdi-table-column-plus-before" ,
  47. },
  48. { "$template": "Separator" },
  49. { "value": "Export", "icon": "mdi mdi-file-export" , "href" : "javascript:loan_add_popup.show();"},
  50. { "value": "Import", "icon": "mdi mdi-file-upload" , "href" : "javascript:loan_add_popup.show();"}
  51. ]
  52. }
  53. },
  54. {
  55. "value": "Clients",
  56. "icon": "mdi mdi-account-supervisor-circle",
  57. "submenu": [
  58. { "value": "Add", "icon": "mdi mdi-account-plus" ,"href" : "transaction_submit.html"},
  59. { "value": "Search", "icon": "mdi mdi-account-search" ,"href" : "transaction_submit.html"},
  60. { "value": "Broadcast", "icon": "mdi mdi-account-off" ,"href" : "transaction_submit.html"}
  61. ]
  62. },
  63. {
  64. "value": "Broker",
  65. "icon": "mdi mdi-account-details",
  66. "submenu": [
  67. { "value": "Add", "icon": "mdi mdi-account-plus" ,"href" : "transaction_submit.html"},
  68. { "value": "Search", "icon": "mdi mdi-account-search" ,"href" : "transaction_submit.html"},
  69. { "$template": "Separator" },
  70. { "value": "Broadcast", "icon": "mdi mdi-account-off" ,"href" : "transaction_submit.html"},
  71. { "$template": "Separator" },
  72. { "value": "Unpaid", "icon": "mdi mdi-file-upload","href" : "transaction_submit.html" }
  73. ]
  74. }
  75. ],
  76. "type": { "subsign": true },
  77. "height": 0
  78. },
  79. { "view": "label", "label": "SuperCredit ", "align": "right", "height": 0 }
  80. ]
  81. },
  82. {
  83. "cols": [
  84. {
  85. "rows": [
  86. { "label": "Staff and Brokers", "view": "label", "height": 38 },
  87. {
  88. "view": "list",
  89. "height": 0,
  90. "template" :"#value#",
  91. "url" : "data/staff.json"
  92. },
  93. { "label": "Performance Summary", "view": "label", "height": 38 },
  94. {
  95. "url": "data/chart.json",
  96. "type": "pie3D",
  97. "xAxis": "#value#",
  98. "yAxis": {},
  99. "view": "chart",
  100. "height": 229
  101. }
  102. ],
  103. "width": 248
  104. },
  105. {
  106. "width":0 ,
  107. "rows" : [
  108. {
  109. "view": "datatable",
  110. "columns": [
  111. { "id": "funder", "header": "Funder", "fillspace": true, "sort": "string" },
  112. { "id": "customer", "header": "Customers", "sort": "string", "width": 200 },
  113. { "id": "settlement", "header": "Settlement date", "sort": "string" },
  114. { "id": "loanamount", "header": "Loan Amount", "sort": "string" },
  115. {
  116. "id": "commission",
  117. "header": "Commission Margin",
  118. "sort": "string",
  119. "width": 200,
  120. "fillspace": false,
  121. "hidden": false,
  122. "css": "{'text-align':'center'}"
  123. },
  124. {
  125. "id": "net",
  126. "header": "Net Amount",
  127. "sort": "string",
  128. "width": 150,
  129. "fillspace": false,
  130. "hidden": false
  131. },
  132. { "id": "gst", "header": "GST", "fillspace": false, "hidden": false },
  133. { "id": "gross", "header": "Gross Amount", "fillspace": false, "hidden": false },
  134. { "id": "pay2broker", "header": "Pay to Broker", "width": 200, "fillspace": false, "hidden": false }
  135. ],
  136. "select": true,
  137. "scrollX": false,
  138. "url" : "data/loan.json",
  139. "width": 0
  140. },
  141. {
  142. "view": "datatable",
  143. "sort": false,
  144. "scroll" : false,
  145. "columns": [
  146. { "id": "funder", "header": "", "fillspace": true, "sort": "string" },
  147. { "id": "customer", "header": "", "sort": "string", "width": 200 },
  148. { "id": "settlement", "header": " ", "sort": "string" },
  149. { "id": "loanamount", "header": " ", "sort": "string" },
  150. {
  151. "id": "commission",
  152. "header": " ",
  153. "sort": "string",
  154. "width": 200,
  155. "fillspace": false,
  156. "hidden": false,
  157. "css": "{'text-align':'center'}"
  158. },
  159. {
  160. "id": "net",
  161. "header": " ",
  162. "sort": "string",
  163. "width": 100,
  164. "fillspace": false,
  165. "hidden": false
  166. },
  167. { "id": "gst", "header": "", "fillspace": false, "hidden": false },
  168. { "id": "gross", "header": "", "fillspace": false, "hidden": false },
  169. { "id": "pay2broker", "header": "Total", "width": 200, "fillspace": false, "hidden": false }
  170. ],
  171. "height": 100,
  172. "url" : "data/loan_total.json"
  173. }
  174. ]
  175. },
  176. ]
  177. }
  178. ]
  179. };
  180. webix.ui(dashboard);