a broker system for Supercredit
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

73 rindas
4.1KB

  1. function trail_popup_close(id, event) {
  2. trail_popup.hide();
  3. }
  4. var trail_form = {
  5. "view": "popup",
  6. "id": "trail_popup",
  7. "css": "trail_popup",
  8. "position":"center",
  9. head:"This window can be moved",
  10. close : true ,
  11. "modal" :true,
  12. "move" : true,
  13. "width": 800,
  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": "Trails" },
  23. { "view": "button", "label": "Close", "width": 80 , "click": "trail_popup_close"}
  24. ]
  25. },
  26. {
  27. view:"datatable",
  28. editable:true,
  29. height: 500,
  30. scroll:true,
  31. columns:[
  32. { id:"org", editor:"text", header:"Revelant Parties", fillspace:true},
  33. { id:"role", editor:"select", options:["SFM", "Clients", "Brokers", "BDM", "Referal", "Other"], header: "Role"},
  34. { id:"trail", editor:"text", header:"Trail $", width :150},
  35. { id:"date", editor:"date", header:"Month", format:webix.Date.dateToStr("%Y-%m-%d"), width :150},
  36. { id:"src", editor:"select", options:["AA220202.xls", "BB202011bb.PDF", "CCWestPack.DocX", "Manual", "Other"], header:"Data Source (Excel/PDF)", width :150}
  37. ],
  38. data: [
  39. { id:1, org: "SFM" , role: "SFM", trail: "$500", date :"2020-02", src: "AA220202.xls" },
  40. { id:2, org: "John", role :"SFM", trail: "$500", date :"2020-02" , src: "AA220202.xls"},
  41. { id:3, org: "Smith", role: "SFM", trail: "$500", date: "2020-02", src: "AA220202.xls"},
  42. { id:4, org: "Jessie",role: "SFM", trail: "$500", date :"2020-02", src: "AA220202.xls"},
  43. { id:5, org: "Warron", role :"SFM", trail: "$500", date: "2020-02", src: "AA220202.xls"},
  44. { id:6, org: "Richard",role :"SFM", trail: "$500",date :"2020-02", src: "AA220202.xls"},
  45. { id:7, org: "SFM" , role: "SFM", trail: "$500", date :"2020-02", src: "AA220202.xls" },
  46. { id:8, org: "John", role :"SFM", trail: "$500", date :"2020-02" , src: "AA220202.xls"},
  47. { id:9, org: "Smith", role: "SFM", trail: "$500", date: "2020-02", src: "AA220202.xls"},
  48. { id:10, org: "Jessie",role: "SFM", trail: "$500", date :"2020-02", src: "AA220202.xls"},
  49. { id:11, org: "Warron", role :"SFM", trail: "$500", date: "2020-02", src: "AA220202.xls"},
  50. { id:12, org: "Richard",role :"SFM", trail: "$500",date :"2020-02", src: "AA220202.xls"},
  51. { id:13, org: "SFM" , role: "SFM", trail: "$500", date :"2020-02", src: "AA220202.xls" },
  52. { id:14, org: "John", role :"SFM", trail: "$500", date :"2020-02" , src: "AA220202.xls"},
  53. { id:15, org: "Smith", role: "SFM", trail: "$500", date: "2020-02", src: "AA220202.xls"},
  54. { id:16, org: "Jessie",role: "SFM", trail: "$500", date :"2020-02", src: "AA220202.xls"},
  55. { id:17, org: "Warron", role :"SFM", trail: "$500", date: "2020-02", src: "AA220202.xls"},
  56. { id:18, org: "Richard",role :"SFM", trail: "$500",date :"2020-02", src: "AA220202.xls"},
  57. { id:19, org: "SFM" , role: "SFM", trail: "$500", date :"2020-02", src: "AA220202.xls" },
  58. { id:20, org: "John", role :"SFM", trail: "$500", date :"2020-02" , src: "AA220202.xls"},
  59. { id:21, org: "Smith", role: "SFM", trail: "$500", date: "2020-02", src: "AA220202.xls"},
  60. { id:22, org: "Jessie",role: "SFM", trail: "$500", date :"2020-02", src: "AA220202.xls"},
  61. { id:23, org: "Warron", role :"SFM", trail: "$500", date: "2020-02", src: "AA220202.xls"},
  62. { id:24, org: "Richard",role :"SFM", trail: "$500",date :"2020-02", src: "AA220202.xls"},
  63. { id:25, org: "",role :"", trail: "",date :"", src: "manual"}
  64. ]
  65. }
  66. ]
  67. }
  68. };
  69. var trail_popup = webix.ui(trail_form);