1 //<script type="text/javascript">
5 * Staff list with General Group adding ability.
8 Pman.on('beforeload', function()
12 modKey : '001-pman-tab-personlist',
13 module : Pman.Tab.PersonStaff,
15 parent : Pman.Tab.StaffMgr,
19 // where is this loaded into??? - by staffmgr - ** fix this...
25 Pman.Tab.PersonStaff = new Pman.Tab.PersonList({
28 permName : 'Core.Staff', // or 'Core.Staff'
29 getLeftSelections : function() {
31 return Pman.Tab.Teams.grid ? Pman.Tab.Teams.grid.getSelectionModel().getSelections() : [];
37 // beforeload handler... -- override on extended versions..
38 beforeload: function(t, o) {
39 //console.log(o.params);
41 var tms = this.getLeftSelections();
44 o.params['query[in_group]'] = tms[0].data.id;
46 o.params['query[name]'] = this.searchBox.getValue();
47 o.params['query[type]'] = this.type; // group type..
48 o.params['query[person_internal_only_all]'] = 1;
49 o.params['query[person_inactive]'] = this.showInActive ? 0 : 1;
57 this.c_office_id_name(),
67 return Pman.Dialog.PersonStaff;
69 bulkAdd : function() {
70 //return Pman.Dialog.PersonBulkAdd
73 newDefaults : function() {
77 company_id : Pman.Login.authUser.company_id,
78 company_id_name : Pman.Login.authUser.company_id_name,
79 company_id_address : Pman.Login.authUser.company_id_address,
80 company_id_tel : Pman.Login.authUser.company_id_tel,
81 company_id_fax : Pman.Login.authUser.company_id_fax