a broker system for Supercredit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

172 lines
5.2KB

  1. function close(id, event) {
  2. loan_add_popup.hide();
  3. }
  4. var loan_add_form = {
  5. "view": "popup",
  6. "id": "loan_add_popup",
  7. "css": "loan_add_popup",
  8. "position":"center",
  9. head:"This window can be moved",
  10. close : true ,
  11. "modal" :true,
  12. "move" : true,
  13. "width": 1000,
  14. "body": {
  15. "rows": [
  16. {
  17. "view": "toolbar",
  18. "css": "webix_dark",
  19. "paddingX": 5,
  20. "cols": [
  21. { "view": "icon", "icon": "wxi-plus" },
  22. { "view": "label", "label": "Add new Transactions" },
  23. { "view": "button", "label": "Close", "width": 80 , "click": "close"}
  24. ]
  25. },
  26. {
  27. "view": "form",
  28. "margin": 40,
  29. "rows": [
  30. {
  31. "margin": 20,
  32. "cols": [
  33. {
  34. "margin": 10,
  35. width: 400,
  36. "rows": [
  37. { "view": "template", "type": "section", "template": "Transaction" },
  38. {
  39. "view": "text",
  40. "placeholder": "Type here...",
  41. "label": "Transaction ID",
  42. "labelWidth": 120,
  43. "value": "XADF61574328507420"
  44. },
  45. {
  46. "view": "datepicker",
  47. "label": "Submission Date",
  48. "value": "2020-10-15",
  49. "timepicker": true,
  50. "format": "%Y-%M-%d",
  51. "labelWidth": 120
  52. },
  53. {
  54. "options": demo_clients,
  55. "label": "Client Names",
  56. "value": "1,2",
  57. "view": "multicombo",
  58. "height": 38,
  59. "labelWidth": 120
  60. },
  61. {
  62. "options": demo_clients,
  63. "label": "Brokers",
  64. "value": "3",
  65. "view": "multicombo",
  66. "height": 38,
  67. "labelWidth": 120
  68. },
  69. {
  70. "options": demo_clients,
  71. "label": "Referal /BDM",
  72. "value": "4",
  73. "view": "multicombo",
  74. "height": 38,
  75. "labelWidth": 120
  76. },
  77. {
  78. "label": "Status",
  79. "value": "Valuation",
  80. "options": trans_state,
  81. "view": "combo",
  82. "height": 38,
  83. "labelWidth": 120
  84. },
  85. { "label": "Lender", "view": "text", "height": 38, "labelWidth": 120, "value": "NAB Bank" },
  86. {
  87. "label": "Loan Limit ($)",
  88. "view": "text",
  89. "height": 38,
  90. "labelWidth": 120,
  91. "value": "800,000"
  92. },
  93. {
  94. "view": "datepicker",
  95. "label": "SettlementDate",
  96. "value": "2020-01-02 00:00:00",
  97. "format": "%Y-%M-%d",
  98. "timepicker": true,
  99. "labelWidth": 120,
  100. "icons": false
  101. }
  102. ]
  103. },
  104. {
  105. "margin": 10,
  106. "rows": [
  107. { "view": "template", "type": "section", "template": "Commission Splits" },
  108. {
  109. view:"datatable",
  110. editable:true,
  111. scroll:false,
  112. columns:[
  113. { id:"org", editor:"text", header:"Revelant Parties", fillspace:true},
  114. { id:"upfront", editor:"text", header:"Upfront$", width :150},
  115. { id:"upfrontp", editor:"text", header:"Upfront%", width :150}
  116. ],
  117. data: [
  118. { id:1, org: "SFM" , upfront:"$6000", upfrontp: "20%", trail: "$500"},
  119. { id:2, org: "Broker John", upfront:"$7000" , upfrontp: "30%", trail: "$500"},
  120. { id:3, org: "Referal Smith", upfront:"$8000", upfrontp: "40%", trail: "$500"},
  121. { id:4, org: "People Jessie", upfront:"$9000", upfrontp: "50%", trail: "$500"},
  122. { id:5, org: "People Warron", upfront:"$16000", upfrontp: "60%", trail: "$500"},
  123. { id:6, org: "People Richard", upfront:"$5000", upfrontp: "15%", trail: "$500"}
  124. ]
  125. },
  126. {
  127. "view":"timeline",
  128. "layout": "x",
  129. "height": 150,
  130. "data": demo_loan_time_line
  131. }
  132. ]
  133. }
  134. ]
  135. },
  136. {
  137. view:"datatable",
  138. editable:true,
  139. height: 200,
  140. scroll:true,
  141. columns:[
  142. { id:"org", editor:"text", header:"Revelant Parties", fillspace:true},
  143. { id:"trail", editor:"text", header:"Trail $", width :150},
  144. { id:"date", editor:"date", header:"Date", format:webix.Date.dateToStr("%Y-%m-%d"), width :150},
  145. { id:"src", editor:"select", header:"Data Source (Excel/PDF)", width :150}
  146. ],
  147. data: [
  148. { id:1, org: "SFM" , trail: "$500", date :"2020-02", src: "AA220202.xls" },
  149. { id:2, org: "Broker John", trail: "$500", date :"2020-02" , src: "AA220202.xls"},
  150. { id:3, org: "Referal Smith", trail: "$500", date: "2020-02", src: "AA220202.xls"},
  151. { id:4, org: "People Jessie", trail: "$500", date :"2020-02", src: "AA220202.xls"},
  152. { id:5, org: "People Warron", trail: "$500", date: "2020-02", src: "AA220202.xls"},
  153. { id:6, org: "People Richard", trail: "$500",date :"2020-02", src: "AA220202.xls"}
  154. ]
  155. },
  156. {
  157. "margin": 10,
  158. "cols": [
  159. { "view": "template", "template": " ", "role": "placeholder", "borderless": true },
  160. { "view": "button", "label": "Discard", "css": "webix_transparent", "align": "right", "width": 120 },
  161. { "view": "button", "css": "webix_primary", "label": "Save", "align": "right", "width": 120, "click": "close" }
  162. ]
  163. }
  164. ]
  165. }
  166. ]
  167. }
  168. };
  169. var loan_add_popup = webix.ui(loan_add_form);