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,
17 permname : 'Admin.Teams'
20 // where is this loaded into??? - by staffmgr - ** fix this...
26 Pman.Tab.PersonStaff = new Pman.Tab.PersonList({
29 permName : 'Core.Staff', // or 'Core.Staff'
30 getLeftSelections : function() {
32 return Pman.Tab.Teams.grid ? Pman.Tab.Teams.grid.getSelectionModel().getSelections() : [];
38 // beforeload handler... -- override on extended versions..
39 beforeload: function(t, o) {
40 //console.log(o.params);
42 var tms = this.getLeftSelections();
45 o.params['query[in_group]'] = tms[0].data.id;
47 o.params['query[name]'] = this.searchBox.getValue();
48 o.params['query[type]'] = this.type; // group type..
49 o.params['query[person_internal_only_all]'] = 1;
50 o.params['query[person_inactive]'] = this.showInActive ? 0 : 1;
58 this.c_office_id_name(),
68 return Pman.Dialog.PersonStaff;
70 bulkAdd : function() {
71 //return Pman.Dialog.PersonBulkAdd
74 newDefaults : function() {
78 company_id : Pman.Login.authUser.company_id,
79 company_id_name : Pman.Login.authUser.company_id_name,
80 company_id_address : Pman.Login.authUser.company_id_address,
81 company_id_tel : Pman.Login.authUser.company_id_tel,
82 company_id_fax : Pman.Login.authUser.company_id_fax