+++ /dev/null
-{
- "name" : "Pman.Tab.BAdminLogInvestorEvents",
- "parent" : "Pman.Tab.BAdminLogs",
- "title" : "Pman.Tab.BAdminLogInvestorEvents",
- "path" : "/home/khlau/gitlive/Pman.BAdmin/Pman.Tab.BAdminLogInvestorEvents.bjs",
- "permname" : "",
- "modOrder" : "002",
- "strings" : {
- "90275c90e270853fee34db3b87d24d7c" : "Date Range <i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>",
- "231bc72756b5e6de492aaaa1577f61b1" : "Remarks",
- "87557f11575c0ad78e4e28abedc13b6e" : "End",
- "1b7f7d24575cdbfadb83b9587fa1bf97" : "#id",
- "098f6bcd4621d373cade4e832627b4f6" : "test",
- "10927a67903afd162cc29267d434a2bb" : "select action",
- "c759559b750d502a5be8dceae85ed841" : "select affected",
- "fc6f97505d89fe9277965c126744647a" : "No Companies found",
- "c4ce29ad8defd171eed580b865fc326e" : "Investor Events",
- "06bff0cfe47afca536033ab51f4e2cdc" : "Log View",
- "a12a3079e14ced46e69ba52b8a90b21a" : "IP",
- "a3ec0cd6d6acd83df3e2095c5edcf8b5" : "Log Grid",
- "155ca6a755e25c15ad7ce45e2f638f10" : "Displaying Companies{0} - {1} of {2}",
- "324ce23223f9b758fa529b6a47d9aa0e" : "select investor",
- "4e97aeeaa8b15ca1180fcd1f3ac478d1" : "When",
- "40bed7cf9b3d4bb3a3d7a7e3eb18c5eb" : "Person",
- "004bf6c9a40003140292e97330236c53" : "Action",
- "a6122a65eaa676f700ae68d393054a37" : "Start",
- "31c03fdb82204f0ac1fe916b2c713c8c" : "Show <i class=\"fa fa-search\" aria-hidden=\"true\"></i>",
- "2c92a9a6a5dbf570825e62eabcdecd8d" : "Affected"
- },
- "items" : [
- {
- "xtype" : "Nest",
- "$ xns" : "Roo.bootstrap.panel",
- "String title" : "Investor Events",
- "items" : [
- {
- "xtype" : "Border",
- "$ xns" : "Roo.bootstrap.layout",
- "* prop" : "layout",
- "items" : [
- {
- "String tabPosition" : "top",
- "xtype" : "Region",
- "Boolean hideTabs" : true,
- "$ xns" : "Roo.bootstrap.layout",
- "* prop" : "center"
- },
- {
- "String tabPosition" : "top",
- "xtype" : "Region",
- "Boolean hideTabs" : true,
- "Number height" : 150,
- "$ xns" : "Roo.bootstrap.layout",
- "Boolean autoScroll" : true,
- "* prop" : "south",
- "Boolean split" : true
- },
- {
- "listeners" : {
- "render" : "function (_self)\n{\n _this.viewPanel = _self;\n}"
- },
- "xtype" : "Content",
- "Boolean fitToFrame" : true,
- "$ xns" : "Roo.bootstrap.panel",
- "String region" : "south",
- "String title" : "Log View"
- },
- {
- "listeners" : {
- "activate" : "function (_self)\n{\n \n if (_this.table) {\n \n _this.table.footer.onClick('first');\n \n }\n \n}",
- "render" : "function (_self)\n{\n _this.grid = _self;\n}"
- },
- "xtype" : "Grid",
- "Boolean fitToFrame" : true,
- "$ xns" : "Roo.bootstrap.panel",
- "String region" : "center",
- "String title" : "Log Grid",
- "Boolean closable" : false,
- "items" : [
- {
- "xtype" : "NavSimplebar",
- "$ xns" : "Roo.bootstrap",
- "* prop" : "toolbar",
- "items" : [
- {
- "xtype" : "NavGroup",
- "$ xns" : "Roo.bootstrap",
- "items" : [
- {
- "xtype" : "NavItem",
- "$ xns" : "Roo.bootstrap",
- "items" : [
- {
- "xtype" : "Element",
- "$ xns" : "Roo.bootstrap",
- "items" : [
- {
- "String cls" : "roo-toolbar",
- "xtype" : "Row",
- "$ xns" : "Roo.bootstrap",
- "items" : [
- {
- "Number md" : 1,
- "xtype" : "Column",
- "$ xns" : "Roo.bootstrap",
- "items" : [
- {
- "String cls" : "roo-toolbar-label",
- "xtype" : "FieldLabel",
- "$ xns" : "Roo.bootstrap",
- "String html" : "Show <i class=\"fa fa-search\" aria-hidden=\"true\"></i>"
- }
- ]
- },
- {
- "Number md" : 2,
- "xtype" : "Column",
- "$ xns" : "Roo.bootstrap",
- "items" : [
- {
- "listeners" : {
- "render" : "function (_self)\n{\n _this.personSel = this;\n \n}",
- "select" : "function (combo, record, index)\n{\n _this.table.footer.onClick('first');\n}"
- },
- "Number pageSize" : 25,
- "Boolean allowBlank" : true,
- "String loadingText" : "test",
- "String valueField" : "userdata_id",
- "Boolean typeAhead" : true,
- "Boolean removable" : true,
- "xtype" : "ComboBox",
- "Boolean editable" : false,
- "String triggerAction" : "all",
- "Boolean alwaysQuery" : true,
- "string placeholder" : "select investor",
- "Number listWidth" : 300,
- "$ xns" : "Roo.bootstrap",
- "Boolean multiple" : false,
- "String displayField" : "full_name",
- "Boolean forceSelection" : true,
- "Boolean append" : true,
- "items" : [
- {
- "listeners" : {
- "beforeload" : "function (_self, o)\n{\n o.params = o.params || {};\n \n}"
- },
- "$ Object sortInfo" : "{field : 'name' , direction : 'ASC'}",
- "xtype" : "Store",
- "boolean remoteSort" : true,
- "$ xns" : "Roo.data",
- "* prop" : "store",
- "items" : [
- {
- "xtype" : "HttpProxy",
- "$ xns" : "Roo.data",
- "String method" : "GET",
- "* prop" : "proxy",
- "$ String url" : "baseURL+'/Roo/Ext_data'"
- },
- {
- "$ Array fields" : "[\n {\n 'name': 'userdata_id_id',\n 'type': 'int'\n }, \n {\n 'name': 'full_name',\n 'type': 'string'\n },\n {\n 'name': 'phone',\n 'type': 'string'\n },\n {\n 'name': 'fax',\n 'type': 'string'\n },\n {\n 'name': 'email',\n 'type': 'string'\n },\n {\n 'name': 'company_id',\n 'type': 'int'\n },\n {\n 'name': 'role',\n 'type': 'string'\n },\n {\n 'name': 'active',\n 'type': 'int'\n },\n {\n 'name': 'remarks',\n 'type': 'string'\n },\n {\n 'name': 'passwd',\n 'type': 'string'\n },\n {\n 'name': 'owner_id',\n 'type': 'int'\n },\n {\n 'name': 'lang',\n 'type': 'string'\n },\n {\n 'name': 'no_reset_sent',\n 'type': 'int'\n },\n {\n 'name': 'action_type',\n 'type': 'string'\n },\n {\n 'name': 'project_id',\n 'type': 'int'\n },\n {\n 'name': 'deleted_by',\n 'type': 'int'\n },\n {\n 'name': 'deleted_dt',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'office_id_id',\n 'type': 'int'\n },\n {\n 'name': 'office_id_company_id',\n 'type': 'int'\n },\n {\n 'name': 'office_id_name',\n 'type': 'string'\n },\n {\n 'name': 'office_id_address',\n 'type': 'string'\n },\n {\n 'name': 'office_id_phone',\n 'type': 'string'\n },\n {\n 'name': 'office_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'office_id_email',\n 'type': 'string'\n },\n {\n 'name': 'office_id_role',\n 'type': 'string'\n },\n {\n 'name': 'company_id_code',\n 'type': 'string'\n },\n {\n 'name': 'company_id_name',\n 'type': 'string'\n },\n {\n 'name': 'company_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'company_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'company_id_address',\n 'type': 'string'\n },\n {\n 'name': 'company_id_tel',\n 'type': 'string'\n },\n {\n 'name': 'company_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'company_id_email',\n 'type': 'string'\n },\n {\n 'name': 'company_id_id',\n 'type': 'int'\n },\n {\n 'name': 'company_id_isOwner',\n 'type': 'int'\n },\n {\n 'name': 'company_id_logo_id',\n 'type': 'int'\n },\n {\n 'name': 'company_id_background_color',\n 'type': 'string'\n },\n {\n 'name': 'company_id_comptype',\n 'type': 'string'\n },\n {\n 'name': 'company_id_url',\n 'type': 'string'\n },\n {\n 'name': 'company_id_main_office_id',\n 'type': 'int'\n },\n {\n 'name': 'company_id_created_by',\n 'type': 'int'\n },\n {\n 'name': 'company_id_created_dt',\n 'type': 'date'\n },\n {\n 'name': 'company_id_updated_by',\n 'type': 'int'\n },\n {\n 'name': 'company_id_updated_dt',\n 'type': 'date'\n },\n {\n 'name': 'company_id_passwd',\n 'type': 'string'\n },\n {\n 'name': 'company_id_dispatch_port',\n 'type': 'string'\n },\n {\n 'name': 'company_id_province',\n 'type': 'string'\n },\n {\n 'name': 'company_id_country',\n 'type': 'string'\n },\n {\n 'name': 'project_id_id',\n 'type': 'int'\n },\n {\n 'name': 'project_id_name',\n 'type': 'string'\n },\n {\n 'name': 'project_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'project_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'project_id_code',\n 'type': 'string'\n },\n {\n 'name': 'project_id_active',\n 'type': 'int'\n },\n {\n 'name': 'project_id_type',\n 'type': 'string'\n },\n {\n 'name': 'project_id_client_id',\n 'type': 'int'\n },\n {\n 'name': 'project_id_team_id',\n 'type': 'int'\n },\n {\n 'name': 'project_id_file_location',\n 'type': 'string'\n },\n {\n 'name': 'project_id_open_date',\n 'type': 'date'\n },\n {\n 'name': 'project_id_open_by',\n 'type': 'int'\n },\n {\n 'name': 'project_id_close_date',\n 'type': 'date'\n },\n {\n 'name': 'project_id_countries',\n 'type': 'string'\n },\n {\n 'name': 'project_id_languages',\n 'type': 'string'\n },\n {\n 'name': 'project_id_agency_id',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_id',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_office_id',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_name',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_phone',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_email',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_company_id',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_role',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_active',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_passwd',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_lang',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_no_reset_sent',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_action_type',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_project_id',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_deleted_by',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_deleted_dt',\n 'type': 'date'\n }\n]",
- "xtype" : "JsonReader",
- "$ xns" : "Roo.data",
- "* prop" : "reader"
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "Number md" : 2,
- "xtype" : "Column",
- "$ xns" : "Roo.bootstrap",
- "items" : [
- {
- "listeners" : {
- "render" : "function (_self)\n{\n _this.actionSel = this;\n}",
- "select" : "function (combo, record, index)\n{\n _this.table.footer.onClick('first');\n}"
- },
- "Boolean allowBlank" : true,
- "String valueField" : "id",
- "Boolean typeAhead" : true,
- "Boolean removable" : true,
- "xtype" : "ComboBox",
- "Boolean editable" : false,
- "String triggerAction" : "all",
- "Boolean alwaysQuery" : false,
- "string placeholder" : "select action",
- "Number listWidth" : 300,
- "$ xns" : "Roo.bootstrap",
- "Boolean multiple" : false,
- "String displayField" : "action",
- "Boolean forceSelection" : true,
- "items" : [
- {
- "listeners" : {
- "beforeload" : "function (_self, o)\n{\n o.params = o.params || {};\n \n /*\n // staff can see all logs, other companies can only see their own.\n if (Pman.Login.authUser.company_id_comptype != 'OWNER') {\n o.params.company_id = Pman.Login.authUser.company_id;\n }\n */\n \n o.params._distinct = 'action';\n \n o.params._columns ='action';\n}"
- },
- "$ Object sortInfo" : "{ field : 'action' , direction : 'ASC' }",
- "xtype" : "Store",
- "boolean remoteSort" : true,
- "$ xns" : "Roo.data",
- "* prop" : "store",
- "items" : [
- {
- "xtype" : "HttpProxy",
- "$ xns" : "Roo.data",
- "String method" : "GET",
- "* prop" : "proxy",
- "$ String url" : "baseURL + '/Roo/Events'"
- },
- {
- "$ Array fields" : "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'person_name',\n 'type': 'string'\n },\n {\n 'name': 'event_when',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'action',\n 'type': 'string'\n },\n {\n 'name': 'ipaddr',\n 'type': 'string'\n },\n {\n 'name': 'on_id',\n 'type': 'int'\n },\n {\n 'name': 'on_table',\n 'type': 'string'\n },\n {\n 'name': 'person_id',\n 'type': 'int'\n },\n {\n 'name': 'remarks',\n 'type': 'string'\n },\n {\n 'name': 'person_id_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_office_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_name',\n 'type': 'string'\n },\n {\n 'name': 'person_id_phone',\n 'type': 'string'\n },\n {\n 'name': 'person_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'person_id_email',\n 'type': 'string'\n },\n {\n 'name': 'person_id_company_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_role',\n 'type': 'string'\n },\n {\n 'name': 'person_id_active',\n 'type': 'int'\n },\n {\n 'name': 'person_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'person_id_passwd',\n 'type': 'string'\n },\n {\n 'name': 'person_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_lang',\n 'type': 'string'\n },\n {\n 'name': 'person_id_no_reset_sent',\n 'type': 'int'\n },\n {\n 'name': 'person_id_action_type',\n 'type': 'string'\n },\n {\n 'name': 'person_id_project_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_deleted_by',\n 'type': 'int'\n },\n {\n 'name': 'person_id_deleted_dt',\n 'type': 'date'\n }\n]",
- "xtype" : "JsonReader",
- "$ xns" : "Roo.data",
- "* prop" : "reader"
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "Number md" : 2,
- "xtype" : "Column",
- "$ xns" : "Roo.bootstrap",
- "items" : [
- {
- "listeners" : {
- "render" : "function (_self)\n{\n _this.affectSel = this;\n}",
- "select" : "function (combo, record, index)\n{\n _this.table.footer.onClick('first');\n}"
- },
- "Boolean allowBlank" : true,
- "String valueField" : "id",
- "Boolean typeAhead" : true,
- "Boolean removable" : true,
- "xtype" : "ComboBox",
- "Boolean editable" : false,
- "String triggerAction" : "all",
- "Boolean alwaysQuery" : false,
- "string placeholder" : "select affected",
- "Number listWidth" : 300,
- "$ xns" : "Roo.bootstrap",
- "Boolean multiple" : false,
- "String displayField" : "on_table",
- "Boolean forceSelection" : true,
- "items" : [
- {
- "listeners" : {
- "beforeload" : "function (_self, o)\n{\n o.params = o.params || {};\n \n /*\n // staff can see all logs, other companies can only see their own.\n if (Pman.Login.authUser.company_id_comptype != 'OWNER') {\n o.params.company_id = Pman.Login.authUser.company_id;\n }\n */\n \n o.params._distinct = 'on_table';\n \n o.params._columns ='on_table';\n}"
- },
- "Object sortInfo" : "{ field : 'on_table' , direction : 'ASC' }",
- "xtype" : "Store",
- "boolean remoteSort" : true,
- "$ xns" : "Roo.data",
- "* prop" : "store",
- "items" : [
- {
- "xtype" : "HttpProxy",
- "$ xns" : "Roo.data",
- "String method" : "GET",
- "* prop" : "proxy",
- "$ String url" : "baseURL + '/Roo/Events'"
- },
- {
- "$ Array fields" : "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'person_name',\n 'type': 'string'\n },\n {\n 'name': 'event_when',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'action',\n 'type': 'string'\n },\n {\n 'name': 'ipaddr',\n 'type': 'string'\n },\n {\n 'name': 'on_id',\n 'type': 'int'\n },\n {\n 'name': 'on_table',\n 'type': 'string'\n },\n {\n 'name': 'person_id',\n 'type': 'int'\n },\n {\n 'name': 'remarks',\n 'type': 'string'\n },\n {\n 'name': 'person_id_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_office_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_name',\n 'type': 'string'\n },\n {\n 'name': 'person_id_phone',\n 'type': 'string'\n },\n {\n 'name': 'person_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'person_id_email',\n 'type': 'string'\n },\n {\n 'name': 'person_id_company_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_role',\n 'type': 'string'\n },\n {\n 'name': 'person_id_active',\n 'type': 'int'\n },\n {\n 'name': 'person_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'person_id_passwd',\n 'type': 'string'\n },\n {\n 'name': 'person_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_lang',\n 'type': 'string'\n },\n {\n 'name': 'person_id_no_reset_sent',\n 'type': 'int'\n },\n {\n 'name': 'person_id_action_type',\n 'type': 'string'\n },\n {\n 'name': 'person_id_project_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_deleted_by',\n 'type': 'int'\n },\n {\n 'name': 'person_id_deleted_dt',\n 'type': 'date'\n }\n]",
- "xtype" : "JsonReader",
- "$ xns" : "Roo.data",
- "* prop" : "reader"
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "Number md" : 1,
- "xtype" : "Column",
- "$ xns" : "Roo.bootstrap",
- "items" : [
- {
- "String cls" : "roo-toolbar-label",
- "xtype" : "FieldLabel",
- "$ xns" : "Roo.bootstrap",
- "String html" : "Date Range <i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>"
- }
- ]
- },
- {
- "Number md" : 2,
- "xtype" : "Column",
- "$ xns" : "Roo.bootstrap",
- "items" : [
- {
- "listeners" : {
- "render" : "function (_self)\n{\n _this.dateFrom = _self;\n}",
- "change" : "function (_self, newValue, oldValue)\n{\n _this.table.footer.onClick('first');\n}"
- },
- "xtype" : "DateField",
- "string placeholder" : "Start",
- "$ xns" : "Roo.bootstrap"
- }
- ]
- },
- {
- "Number md" : 2,
- "xtype" : "Column",
- "$ xns" : "Roo.bootstrap",
- "items" : [
- {
- "listeners" : {
- "render" : "function (_self)\n{\n _this.dateTo = _self;\n}",
- "change" : "function (_self, newValue, oldValue)\n{\n _this.table.footer.onClick('first');\n}"
- },
- "xtype" : "DateField",
- "string placeholder" : "End",
- "$ xns" : "Roo.bootstrap"
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- },
- {
- "listeners" : {
- "rowdblclick" : "function (_self, el, rowIndex, e)\n{\n/*\n if (!_this.dialog) {\n return;\n }\n _this.dialog.show(_this.grid.grid.store.getAt(rowIndex).data, function() {\n if (_this.table) {\n _this.table.footer.onClick('first');\n }\n });\n*/\n}",
- "render" : "function (_self)\n{\n \n _this.table = _self;\n \n}"
- },
- "String cls" : "table-fixed",
- "boolean hover" : true,
- "boolean striped" : false,
- "xtype" : "Table",
- "boolean responsive" : true,
- "Boolean rowSelection" : true,
- "$ xns" : "Roo.bootstrap",
- "Boolean loadMask" : true,
- "* prop" : "grid",
- "items" : [
- {
- "listeners" : {
- "beforeload" : "function (_self, o)\n{\n o.params = o.params || {};\n \n //o.params.person_id = _this.personSel.getValue();\n \n o.params._with_dupe_count = 1;\n \n o.params.modx_users_id = _this.personSel.getValue();\n\n var act = _this.actionSel.getValue();\n \n if (act.length) {\n \n o.params.action = act;\n \n }\n var tbl = _this.affectSel.getValue();\n \n if (tbl.length) {\n \n //o.params.on_table = tbl;\n o.params['query[on_table]'] = tbl;\n }\n \n var f = _this.dateFrom.getValue().split(\"/\");\n \n var df_string = f[2]+\"-\"+f[0]+\"-\"+f[1];\n \n var df = new Date(Date.parse(f));\n \n var t = _this.dateTo.getValue().split(\"/\");\n \n var dt_string = t[2]+\"-\"+t[0]+\"-\"+t[1];\n \n var dt = new Date(Date.parse(t));\n \n if (\n _this.dateFrom.format && \n \n _this.dateTo.format &&\n \n (dt > df)\n ) {\n o.params['query[from]'] = df_string;\n \n o.params['query[to]'] = dt_string;\n \n }\n \n}",
- "load" : "function (_self, records, options)\n{\n //Roo.log(records);\n}"
- },
- "boolean striped" : true,
- "$ Object sortInfo" : "{ field: 'event_when', direction: 'DESC'}",
- "boolean hover" : true,
- "xtype" : "Store",
- "Boolean rowSelection" : true,
- "boolean remoteSort" : true,
- "$ xns" : "Roo.data",
- "Boolean loadMask" : true,
- "* prop" : "store",
- "items" : [
- {
- "listeners" : {
- "load" : "function (This, o, arg)\n{\n //_this.table.footer.onClick('first');\n}"
- },
- "xtype" : "HttpProxy",
- "$ xns" : "Roo.data",
- "String method" : "GET",
- "* prop" : "proxy",
- "$ String url" : "baseURL + '/Coba/InvestorEvents'"
- },
- {
- "$ Array fields" : "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'person_name',\n 'type': 'string'\n },\n {\n 'name': 'event_when',\n 'type': 'date'\n },\n {\n 'name': 'action',\n 'type': 'string'\n },\n {\n 'name': 'ipaddr',\n 'type': 'string'\n },\n {\n 'name': 'on_id',\n 'type': 'int'\n },\n {\n 'name': 'on_table',\n 'type': 'string'\n },\n {\n 'name': 'person_id',\n 'type': 'int'\n },\n {\n 'name': 'remarks',\n 'type': 'string'\n },\n {\n 'name': 'person_id_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_office_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_name',\n 'type': 'string'\n },\n {\n 'name': 'person_id_phone',\n 'type': 'string'\n },\n {\n 'name': 'person_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'person_id_email',\n 'type': 'string'\n },\n {\n 'name': 'person_id_company_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_role',\n 'type': 'string'\n },\n {\n 'name': 'person_id_active',\n 'type': 'int'\n },\n {\n 'name': 'person_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'person_id_passwd',\n 'type': 'string'\n },\n {\n 'name': 'person_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_lang',\n 'type': 'string'\n },\n {\n 'name': 'person_id_no_reset_sent',\n 'type': 'int'\n },\n {\n 'name': 'person_id_action_type',\n 'type': 'string'\n },\n {\n 'name': 'person_id_project_id',\n 'type': 'int'\n },\n {\n 'name': 'person_id_deleted_by',\n 'type': 'int'\n },\n {\n 'name': 'person_id_deleted_dt',\n 'type': 'date'\n }\n]",
- "xtype" : "JsonReader",
- "String root" : "data",
- "$ xns" : "Roo.data",
- "String id" : "id",
- "* prop" : "reader",
- "String totalProperty" : "total"
- }
- ]
- },
- {
- "listeners" : {
- "afterselectionchange" : "function (_self)\n{\n \n if (!this.getSelected()) {\n \n _this.viewPanel.setContent(\"Nothing Selected\");\n \n return;\n \n }\n \n var id = this.getSelected().data.id;\n \n _this.viewPanel.load( { url : baseURL + \"/Admin/EventView/\" + id + \".html\" });\n \n}"
- },
- "xtype" : "RowSelectionModel",
- "$ xns" : "Roo.bootstrap.Table",
- "* prop" : "sm"
- },
- {
- "listeners" : {
- "render" : "function (_self)\n{\n _this.footer = _self;\n}"
- },
- "Number pageSize" : 25,
- "Boolean displayInfo" : false,
- "String displayMsg" : "Displaying Companies{0} - {1} of {2}",
- "xtype" : "PagingToolbar",
- "String emptyMsg" : "No Companies found",
- "$ xns" : "Roo.bootstrap",
- "* prop" : "footer",
- "string name" : "footer"
- },
- {
- "String header" : "When",
- "Number md" : 2,
- "String dataIndex" : "event_when",
- "xtype" : "ColumnModel",
- "Number xs" : 2,
- "$ xns" : "Roo.grid",
- "$ renderer" : "function(v) { \n return v ? v.dateFormat('Y/m/d H:i') : ''; \n}",
- "Boolean sortable" : true,
- "* prop" : "cm[]",
- "Number sm" : 2
- },
- {
- "String header" : "#id",
- "Number md" : 1,
- "String dataIndex" : "id",
- "xtype" : "ColumnModel",
- "Number xs" : 1,
- "$ xns" : "Roo.grid",
- "$ renderer" : "function(v) { return String.format('{0}', v); }",
- "Boolean sortable" : true,
- "* prop" : "cm[]",
- "Number sm" : 1
- },
- {
- "String header" : "Person",
- "Number md" : 2,
- "String dataIndex" : "person_id_name",
- "xtype" : "ColumnModel",
- "Number xs" : 2,
- "$ xns" : "Roo.grid",
- "$ renderer" : "function(v) { return String.format('{0}', v); }",
- "Boolean sortable" : true,
- "* prop" : "cm[]",
- "Number sm" : 2
- },
- {
- "String header" : "Action",
- "Number md" : 1,
- "String dataIndex" : "action",
- "xtype" : "ColumnModel",
- "Number xs" : 1,
- "$ xns" : "Roo.grid",
- "$ renderer" : "function(v) { return String.format('{0}', v); }",
- "* prop" : "cm[]",
- "Number sm" : 1
- },
- {
- "String header" : "IP",
- "Number md" : 1,
- "String dataIndex" : "ipaddr",
- "xtype" : "ColumnModel",
- "Number xs" : 1,
- "$ xns" : "Roo.grid",
- "$ renderer" : "function(v) { return String.format('{0}', v); }",
- "* prop" : "cm[]",
- "Number sm" : 1
- },
- {
- "String header" : "Affected",
- "Number md" : 1,
- "String dataIndex" : "on_table",
- "xtype" : "ColumnModel",
- "Number xs" : 1,
- "$ xns" : "Roo.grid",
- "$ renderer" : "function(v, x, r) {\n \n return v ? String.format('{0}({1})', v, r.data.on_id) : '';\n \n}",
- "* prop" : "cm[]",
- "Number sm" : 1
- },
- {
- "String header" : "Remarks",
- "Number md" : 4,
- "String dataIndex" : "remarks",
- "xtype" : "ColumnModel",
- "Number xs" : 4,
- "$ xns" : "Roo.grid",
- "$ renderer" : "function(v) { return String.format('{0}', v); }",
- "* prop" : "cm[]",
- "Number sm" : 4
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
- ]
-}
\ No newline at end of file
+++ /dev/null
-//<script type="text/javascript">
-
-// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
-
-Roo.namespace('Pman.Tab');
-
-Pman.Tab.BAdminLogInvestorEvents = new Roo.XComponent({
-
- _strings : {
- '90275c90e270853fee34db3b87d24d7c' :"Date Range <i class=\"fa fa-calendar\" aria-hidden=\"true\"></i>",
- '231bc72756b5e6de492aaaa1577f61b1' :"Remarks",
- '87557f11575c0ad78e4e28abedc13b6e' :"End",
- '1b7f7d24575cdbfadb83b9587fa1bf97' :"#id",
- '098f6bcd4621d373cade4e832627b4f6' :"test",
- '10927a67903afd162cc29267d434a2bb' :"select action",
- 'c759559b750d502a5be8dceae85ed841' :"select affected",
- 'fc6f97505d89fe9277965c126744647a' :"No Companies found",
- 'c4ce29ad8defd171eed580b865fc326e' :"Investor Events",
- '06bff0cfe47afca536033ab51f4e2cdc' :"Log View",
- 'a12a3079e14ced46e69ba52b8a90b21a' :"IP",
- 'a3ec0cd6d6acd83df3e2095c5edcf8b5' :"Log Grid",
- '155ca6a755e25c15ad7ce45e2f638f10' :"Displaying Companies{0} - {1} of {2}",
- '324ce23223f9b758fa529b6a47d9aa0e' :"select investor",
- '4e97aeeaa8b15ca1180fcd1f3ac478d1' :"When",
- '40bed7cf9b3d4bb3a3d7a7e3eb18c5eb' :"Person",
- '004bf6c9a40003140292e97330236c53' :"Action",
- 'a6122a65eaa676f700ae68d393054a37' :"Start",
- '31c03fdb82204f0ac1fe916b2c713c8c' :"Show <i class=\"fa fa-search\" aria-hidden=\"true\"></i>",
- '2c92a9a6a5dbf570825e62eabcdecd8d' :"Affected"
- },
-
- part : ["BAdmin", "LogInvestorEvents" ],
- order : '002-Pman.Tab.BAdminLogInvestorEvents',
- region : 'center',
- parent : 'Pman.Tab.BAdminLogs',
- name : "Pman.Tab.BAdminLogInvestorEvents",
- disabled : false,
- permname : '',
- _tree : function(_data)
- {
- var _this = this;
- var MODULE = this;
- return {
- xtype : 'Nest',
- title : _this._strings['c4ce29ad8defd171eed580b865fc326e'] /* Investor Events */,
- xns : Roo.bootstrap.panel,
- '|xns' : 'Roo.bootstrap.panel',
- layout : {
- xtype : 'Border',
- xns : Roo.bootstrap.layout,
- '|xns' : 'Roo.bootstrap.layout',
- center : {
- xtype : 'Region',
- hideTabs : true,
- tabPosition : 'top',
- xns : Roo.bootstrap.layout,
- '|xns' : 'Roo.bootstrap.layout'
- },
- south : {
- xtype : 'Region',
- autoScroll : true,
- height : 150,
- hideTabs : true,
- split : true,
- tabPosition : 'top',
- xns : Roo.bootstrap.layout,
- '|xns' : 'Roo.bootstrap.layout'
- },
- items : [
- {
- xtype : 'Content',
- fitToFrame : true,
- region : 'south',
- title : _this._strings['06bff0cfe47afca536033ab51f4e2cdc'] /* Log View */,
- listeners : {
- render : function (_self)
- {
- _this.viewPanel = _self;
- }
- },
- xns : Roo.bootstrap.panel,
- '|xns' : 'Roo.bootstrap.panel'
- },
- {
- xtype : 'Grid',
- closable : false,
- fitToFrame : true,
- region : 'center',
- title : _this._strings['a3ec0cd6d6acd83df3e2095c5edcf8b5'] /* Log Grid */,
- listeners : {
- activate : function (_self)
- {
-
- if (_this.table) {
-
- _this.table.footer.onClick('first');
-
- }
-
- },
- render : function (_self)
- {
- _this.grid = _self;
- }
- },
- xns : Roo.bootstrap.panel,
- '|xns' : 'Roo.bootstrap.panel',
- toolbar : {
- xtype : 'NavSimplebar',
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
- {
- xtype : 'NavGroup',
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
- {
- xtype : 'NavItem',
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
- {
- xtype : 'Element',
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
- {
- xtype : 'Row',
- cls : 'roo-toolbar',
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
- {
- xtype : 'Column',
- md : 1,
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
- {
- xtype : 'FieldLabel',
- cls : 'roo-toolbar-label',
- html : _this._strings['31c03fdb82204f0ac1fe916b2c713c8c'] /* Show <i class="fa fa-search" aria-hidden="true"></i> */,
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap'
- }
- ]
- },
- {
- xtype : 'Column',
- md : 2,
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
- {
- xtype : 'ComboBox',
- allowBlank : true,
- alwaysQuery : true,
- append : true,
- displayField : 'full_name',
- editable : false,
- forceSelection : true,
- listWidth : 300,
- loadingText : _this._strings['098f6bcd4621d373cade4e832627b4f6'] /* test */,
- multiple : false,
- pageSize : 25,
- placeholder : _this._strings['324ce23223f9b758fa529b6a47d9aa0e'] /* select investor */,
- removable : true,
- triggerAction : 'all',
- typeAhead : true,
- valueField : 'userdata_id',
- listeners : {
- render : function (_self)
- {
- _this.personSel = this;
-
- },
- select : function (combo, record, index)
- {
- _this.table.footer.onClick('first');
- }
- },
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- store : {
- xtype : 'Store',
- remoteSort : true,
- sortInfo : {field : 'name' , direction : 'ASC'},
- listeners : {
- beforeload : function (_self, o)
- {
- o.params = o.params || {};
-
- }
- },
- xns : Roo.data,
- '|xns' : 'Roo.data',
- proxy : {
- xtype : 'HttpProxy',
- method : 'GET',
- url : baseURL+'/Roo/Ext_data',
- xns : Roo.data,
- '|xns' : 'Roo.data'
- },
- reader : {
- xtype : 'JsonReader',
- fields : [
- {
- 'name': 'userdata_id_id',
- 'type': 'int'
- },
- {
- 'name': 'full_name',
- 'type': 'string'
- },
- {
- 'name': 'phone',
- 'type': 'string'
- },
- {
- 'name': 'fax',
- 'type': 'string'
- },
- {
- 'name': 'email',
- 'type': 'string'
- },
- {
- 'name': 'company_id',
- 'type': 'int'
- },
- {
- 'name': 'role',
- 'type': 'string'
- },
- {
- 'name': 'active',
- 'type': 'int'
- },
- {
- 'name': 'remarks',
- 'type': 'string'
- },
- {
- 'name': 'passwd',
- 'type': 'string'
- },
- {
- 'name': 'owner_id',
- 'type': 'int'
- },
- {
- 'name': 'lang',
- 'type': 'string'
- },
- {
- 'name': 'no_reset_sent',
- 'type': 'int'
- },
- {
- 'name': 'action_type',
- 'type': 'string'
- },
- {
- 'name': 'project_id',
- 'type': 'int'
- },
- {
- 'name': 'deleted_by',
- 'type': 'int'
- },
- {
- 'name': 'deleted_dt',
- 'type': 'date',
- 'dateFormat': 'Y-m-d'
- },
- {
- 'name': 'office_id_id',
- 'type': 'int'
- },
- {
- 'name': 'office_id_company_id',
- 'type': 'int'
- },
- {
- 'name': 'office_id_name',
- 'type': 'string'
- },
- {
- 'name': 'office_id_address',
- 'type': 'string'
- },
- {
- 'name': 'office_id_phone',
- 'type': 'string'
- },
- {
- 'name': 'office_id_fax',
- 'type': 'string'
- },
- {
- 'name': 'office_id_email',
- 'type': 'string'
- },
- {
- 'name': 'office_id_role',
- 'type': 'string'
- },
- {
- 'name': 'company_id_code',
- 'type': 'string'
- },
- {
- 'name': 'company_id_name',
- 'type': 'string'
- },
- {
- 'name': 'company_id_remarks',
- 'type': 'string'
- },
- {
- 'name': 'company_id_owner_id',
- 'type': 'int'
- },
- {
- 'name': 'company_id_address',
- 'type': 'string'
- },
- {
- 'name': 'company_id_tel',
- 'type': 'string'
- },
- {
- 'name': 'company_id_fax',
- 'type': 'string'
- },
- {
- 'name': 'company_id_email',
- 'type': 'string'
- },
- {
- 'name': 'company_id_id',
- 'type': 'int'
- },
- {
- 'name': 'company_id_isOwner',
- 'type': 'int'
- },
- {
- 'name': 'company_id_logo_id',
- 'type': 'int'
- },
- {
- 'name': 'company_id_background_color',
- 'type': 'string'
- },
- {
- 'name': 'company_id_comptype',
- 'type': 'string'
- },
- {
- 'name': 'company_id_url',
- 'type': 'string'
- },
- {
- 'name': 'company_id_main_office_id',
- 'type': 'int'
- },
- {
- 'name': 'company_id_created_by',
- 'type': 'int'
- },
- {
- 'name': 'company_id_created_dt',
- 'type': 'date'
- },
- {
- 'name': 'company_id_updated_by',
- 'type': 'int'
- },
- {
- 'name': 'company_id_updated_dt',
- 'type': 'date'
- },
- {
- 'name': 'company_id_passwd',
- 'type': 'string'
- },
- {
- 'name': 'company_id_dispatch_port',
- 'type': 'string'
- },
- {
- 'name': 'company_id_province',
- 'type': 'string'
- },
- {
- 'name': 'company_id_country',
- 'type': 'string'
- },
- {
- 'name': 'project_id_id',
- 'type': 'int'
- },
- {
- 'name': 'project_id_name',
- 'type': 'string'
- },
- {
- 'name': 'project_id_remarks',
- 'type': 'string'
- },
- {
- 'name': 'project_id_owner_id',
- 'type': 'int'
- },
- {
- 'name': 'project_id_code',
- 'type': 'string'
- },
- {
- 'name': 'project_id_active',
- 'type': 'int'
- },
- {
- 'name': 'project_id_type',
- 'type': 'string'
- },
- {
- 'name': 'project_id_client_id',
- 'type': 'int'
- },
- {
- 'name': 'project_id_team_id',
- 'type': 'int'
- },
- {
- 'name': 'project_id_file_location',
- 'type': 'string'
- },
- {
- 'name': 'project_id_open_date',
- 'type': 'date'
- },
- {
- 'name': 'project_id_open_by',
- 'type': 'int'
- },
- {
- 'name': 'project_id_close_date',
- 'type': 'date'
- },
- {
- 'name': 'project_id_countries',
- 'type': 'string'
- },
- {
- 'name': 'project_id_languages',
- 'type': 'string'
- },
- {
- 'name': 'project_id_agency_id',
- 'type': 'int'
- },
- {
- 'name': 'owner_id_id',
- 'type': 'int'
- },
- {
- 'name': 'owner_id_office_id',
- 'type': 'int'
- },
- {
- 'name': 'owner_id_name',
- 'type': 'string'
- },
- {
- 'name': 'owner_id_phone',
- 'type': 'string'
- },
- {
- 'name': 'owner_id_fax',
- 'type': 'string'
- },
- {
- 'name': 'owner_id_email',
- 'type': 'string'
- },
- {
- 'name': 'owner_id_company_id',
- 'type': 'int'
- },
- {
- 'name': 'owner_id_role',
- 'type': 'string'
- },
- {
- 'name': 'owner_id_active',
- 'type': 'int'
- },
- {
- 'name': 'owner_id_remarks',
- 'type': 'string'
- },
- {
- 'name': 'owner_id_passwd',
- 'type': 'string'
- },
- {
- 'name': 'owner_id_owner_id',
- 'type': 'int'
- },
- {
- 'name': 'owner_id_lang',
- 'type': 'string'
- },
- {
- 'name': 'owner_id_no_reset_sent',
- 'type': 'int'
- },
- {
- 'name': 'owner_id_action_type',
- 'type': 'string'
- },
- {
- 'name': 'owner_id_project_id',
- 'type': 'int'
- },
- {
- 'name': 'owner_id_deleted_by',
- 'type': 'int'
- },
- {
- 'name': 'owner_id_deleted_dt',
- 'type': 'date'
- }
- ],
- xns : Roo.data,
- '|xns' : 'Roo.data'
- }
- }
- }
- ]
- },
- {
- xtype : 'Column',
- md : 2,
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
- {
- xtype : 'ComboBox',
- allowBlank : true,
- alwaysQuery : false,
- displayField : 'action',
- editable : false,
- forceSelection : true,
- listWidth : 300,
- multiple : false,
- placeholder : _this._strings['10927a67903afd162cc29267d434a2bb'] /* select action */,
- removable : true,
- triggerAction : 'all',
- typeAhead : true,
- valueField : 'id',
- listeners : {
- render : function (_self)
- {
- _this.actionSel = this;
- },
- select : function (combo, record, index)
- {
- _this.table.footer.onClick('first');
- }
- },
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- store : {
- xtype : 'Store',
- remoteSort : true,
- sortInfo : { field : 'action' , direction : 'ASC' },
- listeners : {
- beforeload : function (_self, o)
- {
- o.params = o.params || {};
-
- /*
- // staff can see all logs, other companies can only see their own.
- if (Pman.Login.authUser.company_id_comptype != 'OWNER') {
- o.params.company_id = Pman.Login.authUser.company_id;
- }
- */
-
- o.params._distinct = 'action';
-
- o.params._columns ='action';
- }
- },
- xns : Roo.data,
- '|xns' : 'Roo.data',
- proxy : {
- xtype : 'HttpProxy',
- method : 'GET',
- url : baseURL + '/Roo/Events',
- xns : Roo.data,
- '|xns' : 'Roo.data'
- },
- reader : {
- xtype : 'JsonReader',
- fields : [
- {
- 'name': 'id',
- 'type': 'int'
- },
- {
- 'name': 'person_name',
- 'type': 'string'
- },
- {
- 'name': 'event_when',
- 'type': 'date',
- 'dateFormat': 'Y-m-d'
- },
- {
- 'name': 'action',
- 'type': 'string'
- },
- {
- 'name': 'ipaddr',
- 'type': 'string'
- },
- {
- 'name': 'on_id',
- 'type': 'int'
- },
- {
- 'name': 'on_table',
- 'type': 'string'
- },
- {
- 'name': 'person_id',
- 'type': 'int'
- },
- {
- 'name': 'remarks',
- 'type': 'string'
- },
- {
- 'name': 'person_id_id',
- 'type': 'int'
- },
- {
- 'name': 'person_id_office_id',
- 'type': 'int'
- },
- {
- 'name': 'person_id_name',
- 'type': 'string'
- },
- {
- 'name': 'person_id_phone',
- 'type': 'string'
- },
- {
- 'name': 'person_id_fax',
- 'type': 'string'
- },
- {
- 'name': 'person_id_email',
- 'type': 'string'
- },
- {
- 'name': 'person_id_company_id',
- 'type': 'int'
- },
- {
- 'name': 'person_id_role',
- 'type': 'string'
- },
- {
- 'name': 'person_id_active',
- 'type': 'int'
- },
- {
- 'name': 'person_id_remarks',
- 'type': 'string'
- },
- {
- 'name': 'person_id_passwd',
- 'type': 'string'
- },
- {
- 'name': 'person_id_owner_id',
- 'type': 'int'
- },
- {
- 'name': 'person_id_lang',
- 'type': 'string'
- },
- {
- 'name': 'person_id_no_reset_sent',
- 'type': 'int'
- },
- {
- 'name': 'person_id_action_type',
- 'type': 'string'
- },
- {
- 'name': 'person_id_project_id',
- 'type': 'int'
- },
- {
- 'name': 'person_id_deleted_by',
- 'type': 'int'
- },
- {
- 'name': 'person_id_deleted_dt',
- 'type': 'date'
- }
- ],
- xns : Roo.data,
- '|xns' : 'Roo.data'
- }
- }
- }
- ]
- },
- {
- xtype : 'Column',
- md : 2,
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
- {
- xtype : 'ComboBox',
- allowBlank : true,
- alwaysQuery : false,
- displayField : 'on_table',
- editable : false,
- forceSelection : true,
- listWidth : 300,
- multiple : false,
- placeholder : _this._strings['c759559b750d502a5be8dceae85ed841'] /* select affected */,
- removable : true,
- triggerAction : 'all',
- typeAhead : true,
- valueField : 'id',
- listeners : {
- render : function (_self)
- {
- _this.affectSel = this;
- },
- select : function (combo, record, index)
- {
- _this.table.footer.onClick('first');
- }
- },
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- store : {
- xtype : 'Store',
- remoteSort : true,
- sortInfo : '{ field : \'on_table\' , direction : \'ASC\' }',
- listeners : {
- beforeload : function (_self, o)
- {
- o.params = o.params || {};
-
- /*
- // staff can see all logs, other companies can only see their own.
- if (Pman.Login.authUser.company_id_comptype != 'OWNER') {
- o.params.company_id = Pman.Login.authUser.company_id;
- }
- */
-
- o.params._distinct = 'on_table';
-
- o.params._columns ='on_table';
- }
- },
- xns : Roo.data,
- '|xns' : 'Roo.data',
- proxy : {
- xtype : 'HttpProxy',
- method : 'GET',
- url : baseURL + '/Roo/Events',
- xns : Roo.data,
- '|xns' : 'Roo.data'
- },
- reader : {
- xtype : 'JsonReader',
- fields : [
- {
- 'name': 'id',
- 'type': 'int'
- },
- {
- 'name': 'person_name',
- 'type': 'string'
- },
- {
- 'name': 'event_when',
- 'type': 'date',
- 'dateFormat': 'Y-m-d'
- },
- {
- 'name': 'action',
- 'type': 'string'
- },
- {
- 'name': 'ipaddr',
- 'type': 'string'
- },
- {
- 'name': 'on_id',
- 'type': 'int'
- },
- {
- 'name': 'on_table',
- 'type': 'string'
- },
- {
- 'name': 'person_id',
- 'type': 'int'
- },
- {
- 'name': 'remarks',
- 'type': 'string'
- },
- {
- 'name': 'person_id_id',
- 'type': 'int'
- },
- {
- 'name': 'person_id_office_id',
- 'type': 'int'
- },
- {
- 'name': 'person_id_name',
- 'type': 'string'
- },
- {
- 'name': 'person_id_phone',
- 'type': 'string'
- },
- {
- 'name': 'person_id_fax',
- 'type': 'string'
- },
- {
- 'name': 'person_id_email',
- 'type': 'string'
- },
- {
- 'name': 'person_id_company_id',
- 'type': 'int'
- },
- {
- 'name': 'person_id_role',
- 'type': 'string'
- },
- {
- 'name': 'person_id_active',
- 'type': 'int'
- },
- {
- 'name': 'person_id_remarks',
- 'type': 'string'
- },
- {
- 'name': 'person_id_passwd',
- 'type': 'string'
- },
- {
- 'name': 'person_id_owner_id',
- 'type': 'int'
- },
- {
- 'name': 'person_id_lang',
- 'type': 'string'
- },
- {
- 'name': 'person_id_no_reset_sent',
- 'type': 'int'
- },
- {
- 'name': 'person_id_action_type',
- 'type': 'string'
- },
- {
- 'name': 'person_id_project_id',
- 'type': 'int'
- },
- {
- 'name': 'person_id_deleted_by',
- 'type': 'int'
- },
- {
- 'name': 'person_id_deleted_dt',
- 'type': 'date'
- }
- ],
- xns : Roo.data,
- '|xns' : 'Roo.data'
- }
- }
- }
- ]
- },
- {
- xtype : 'Column',
- md : 1,
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
- {
- xtype : 'FieldLabel',
- cls : 'roo-toolbar-label',
- html : _this._strings['90275c90e270853fee34db3b87d24d7c'] /* Date Range <i class="fa fa-calendar" aria-hidden="true"></i> */,
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap'
- }
- ]
- },
- {
- xtype : 'Column',
- md : 2,
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
- {
- xtype : 'DateField',
- placeholder : _this._strings['a6122a65eaa676f700ae68d393054a37'] /* Start */,
- listeners : {
- change : function (_self, newValue, oldValue)
- {
- _this.table.footer.onClick('first');
- },
- render : function (_self)
- {
- _this.dateFrom = _self;
- }
- },
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap'
- }
- ]
- },
- {
- xtype : 'Column',
- md : 2,
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- items : [
- {
- xtype : 'DateField',
- placeholder : _this._strings['87557f11575c0ad78e4e28abedc13b6e'] /* End */,
- listeners : {
- change : function (_self, newValue, oldValue)
- {
- _this.table.footer.onClick('first');
- },
- render : function (_self)
- {
- _this.dateTo = _self;
- }
- },
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap'
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- },
- grid : {
- xtype : 'Table',
- cls : 'table-fixed',
- hover : true,
- loadMask : true,
- responsive : true,
- rowSelection : true,
- striped : false,
- listeners : {
- render : function (_self)
- {
-
- _this.table = _self;
-
- },
- rowdblclick : function (_self, el, rowIndex, e)
- {
- /*
- if (!_this.dialog) {
- return;
- }
- _this.dialog.show(_this.grid.grid.store.getAt(rowIndex).data, function() {
- if (_this.table) {
- _this.table.footer.onClick('first');
- }
- });
- */
- }
- },
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap',
- footer : {
- xtype : 'PagingToolbar',
- displayInfo : false,
- displayMsg : _this._strings['155ca6a755e25c15ad7ce45e2f638f10'] /* Displaying Companies{0} - {1} of {2} */,
- emptyMsg : _this._strings['fc6f97505d89fe9277965c126744647a'] /* No Companies found */,
- name : 'footer',
- pageSize : 25,
- listeners : {
- render : function (_self)
- {
- _this.footer = _self;
- }
- },
- xns : Roo.bootstrap,
- '|xns' : 'Roo.bootstrap'
- },
- store : {
- xtype : 'Store',
- hover : true,
- loadMask : true,
- remoteSort : true,
- rowSelection : true,
- sortInfo : { field: 'event_when', direction: 'DESC'},
- striped : true,
- listeners : {
- beforeload : function (_self, o)
- {
- o.params = o.params || {};
-
- //o.params.person_id = _this.personSel.getValue();
-
- o.params._with_dupe_count = 1;
-
- o.params.modx_users_id = _this.personSel.getValue();
-
- var act = _this.actionSel.getValue();
-
- if (act.length) {
-
- o.params.action = act;
-
- }
- var tbl = _this.affectSel.getValue();
-
- if (tbl.length) {
-
- //o.params.on_table = tbl;
- o.params['query[on_table]'] = tbl;
- }
-
- var f = _this.dateFrom.getValue().split("/");
-
- var df_string = f[2]+"-"+f[0]+"-"+f[1];
-
- var df = new Date(Date.parse(f));
-
- var t = _this.dateTo.getValue().split("/");
-
- var dt_string = t[2]+"-"+t[0]+"-"+t[1];
-
- var dt = new Date(Date.parse(t));
-
- if (
- _this.dateFrom.format &&
-
- _this.dateTo.format &&
-
- (dt > df)
- ) {
- o.params['query[from]'] = df_string;
-
- o.params['query[to]'] = dt_string;
-
- }
-
- },
- load : function (_self, records, options)
- {
- //Roo.log(records);
- }
- },
- xns : Roo.data,
- '|xns' : 'Roo.data',
- proxy : {
- xtype : 'HttpProxy',
- method : 'GET',
- url : baseURL + '/Coba/InvestorEvents',
- listeners : {
- load : function (This, o, arg)
- {
- //_this.table.footer.onClick('first');
- }
- },
- xns : Roo.data,
- '|xns' : 'Roo.data'
- },
- reader : {
- xtype : 'JsonReader',
- fields : [
- {
- 'name': 'id',
- 'type': 'int'
- },
- {
- 'name': 'person_name',
- 'type': 'string'
- },
- {
- 'name': 'event_when',
- 'type': 'date'
- },
- {
- 'name': 'action',
- 'type': 'string'
- },
- {
- 'name': 'ipaddr',
- 'type': 'string'
- },
- {
- 'name': 'on_id',
- 'type': 'int'
- },
- {
- 'name': 'on_table',
- 'type': 'string'
- },
- {
- 'name': 'person_id',
- 'type': 'int'
- },
- {
- 'name': 'remarks',
- 'type': 'string'
- },
- {
- 'name': 'person_id_id',
- 'type': 'int'
- },
- {
- 'name': 'person_id_office_id',
- 'type': 'int'
- },
- {
- 'name': 'person_id_name',
- 'type': 'string'
- },
- {
- 'name': 'person_id_phone',
- 'type': 'string'
- },
- {
- 'name': 'person_id_fax',
- 'type': 'string'
- },
- {
- 'name': 'person_id_email',
- 'type': 'string'
- },
- {
- 'name': 'person_id_company_id',
- 'type': 'int'
- },
- {
- 'name': 'person_id_role',
- 'type': 'string'
- },
- {
- 'name': 'person_id_active',
- 'type': 'int'
- },
- {
- 'name': 'person_id_remarks',
- 'type': 'string'
- },
- {
- 'name': 'person_id_passwd',
- 'type': 'string'
- },
- {
- 'name': 'person_id_owner_id',
- 'type': 'int'
- },
- {
- 'name': 'person_id_lang',
- 'type': 'string'
- },
- {
- 'name': 'person_id_no_reset_sent',
- 'type': 'int'
- },
- {
- 'name': 'person_id_action_type',
- 'type': 'string'
- },
- {
- 'name': 'person_id_project_id',
- 'type': 'int'
- },
- {
- 'name': 'person_id_deleted_by',
- 'type': 'int'
- },
- {
- 'name': 'person_id_deleted_dt',
- 'type': 'date'
- }
- ],
- id : 'id',
- root : 'data',
- totalProperty : 'total',
- xns : Roo.data,
- '|xns' : 'Roo.data'
- }
- },
- sm : {
- xtype : 'RowSelectionModel',
- listeners : {
- afterselectionchange : function (_self)
- {
-
- if (!this.getSelected()) {
-
- _this.viewPanel.setContent("Nothing Selected");
-
- return;
-
- }
-
- var id = this.getSelected().data.id;
-
- _this.viewPanel.load( { url : baseURL + "/Admin/EventView/" + id + ".html" });
-
- }
- },
- xns : Roo.bootstrap.Table,
- '|xns' : 'Roo.bootstrap.Table'
- },
- cm : [
- {
- xtype : 'ColumnModel',
- dataIndex : 'event_when',
- header : _this._strings['4e97aeeaa8b15ca1180fcd1f3ac478d1'] /* When */,
- md : 2,
- renderer : function(v) {
- return v ? v.dateFormat('Y/m/d H:i') : '';
- },
- sm : 2,
- sortable : true,
- xs : 2,
- xns : Roo.grid,
- '|xns' : 'Roo.grid'
- },
- {
- xtype : 'ColumnModel',
- dataIndex : 'id',
- header : _this._strings['1b7f7d24575cdbfadb83b9587fa1bf97'] /* #id */,
- md : 1,
- renderer : function(v) { return String.format('{0}', v); },
- sm : 1,
- sortable : true,
- xs : 1,
- xns : Roo.grid,
- '|xns' : 'Roo.grid'
- },
- {
- xtype : 'ColumnModel',
- dataIndex : 'person_id_name',
- header : _this._strings['40bed7cf9b3d4bb3a3d7a7e3eb18c5eb'] /* Person */,
- md : 2,
- renderer : function(v) { return String.format('{0}', v); },
- sm : 2,
- sortable : true,
- xs : 2,
- xns : Roo.grid,
- '|xns' : 'Roo.grid'
- },
- {
- xtype : 'ColumnModel',
- dataIndex : 'action',
- header : _this._strings['004bf6c9a40003140292e97330236c53'] /* Action */,
- md : 1,
- renderer : function(v) { return String.format('{0}', v); },
- sm : 1,
- xs : 1,
- xns : Roo.grid,
- '|xns' : 'Roo.grid'
- },
- {
- xtype : 'ColumnModel',
- dataIndex : 'ipaddr',
- header : _this._strings['a12a3079e14ced46e69ba52b8a90b21a'] /* IP */,
- md : 1,
- renderer : function(v) { return String.format('{0}', v); },
- sm : 1,
- xs : 1,
- xns : Roo.grid,
- '|xns' : 'Roo.grid'
- },
- {
- xtype : 'ColumnModel',
- dataIndex : 'on_table',
- header : _this._strings['2c92a9a6a5dbf570825e62eabcdecd8d'] /* Affected */,
- md : 1,
- renderer : function(v, x, r) {
-
- return v ? String.format('{0}({1})', v, r.data.on_id) : '';
-
- },
- sm : 1,
- xs : 1,
- xns : Roo.grid,
- '|xns' : 'Roo.grid'
- },
- {
- xtype : 'ColumnModel',
- dataIndex : 'remarks',
- header : _this._strings['231bc72756b5e6de492aaaa1577f61b1'] /* Remarks */,
- md : 4,
- renderer : function(v) { return String.format('{0}', v); },
- sm : 4,
- xs : 4,
- xns : Roo.grid,
- '|xns' : 'Roo.grid'
- }
- ]
- }
- }
- ]
- }
- }; }
-});