1 //<script type="text/javascript">
5 * Staff list with General Group adding ability.
8 Pman.on('beforeload', function()
11 Roo.log('personlist beforeLoad????????????????????????????????????');
14 modKey : '001-pman-tab-personlist',
15 module : Pman.Tab.PersonStaff,
17 parent : Pman.Tab.StaffMgr,
19 permname : 'Admin.Teams'
22 // where is this loaded into??? - by staffmgr - ** fix this...
28 Pman.Tab.PersonStaff = new Pman.Tab.PersonList({
31 permName : 'Core.Staff', // or 'Core.Staff'
32 getLeftSelections : function() {
34 return Pman.Tab.Teams.grid ? Pman.Tab.Teams.grid.getSelectionModel().getSelections() : [];
40 // beforeload handler... -- override on extended versions..
41 beforeload: function(t, o) {
42 //console.log(o.params);
44 var tms = this.getLeftSelections();
47 o.params['query[in_group]'] = tms[0].data.id;
49 o.params['query[name]'] = this.searchBox.getValue();
50 o.params['query[type]'] = this.type; // group type..
51 o.params['query[person_internal_only_all]'] = 1;
52 o.params['query[person_inactive]'] = this.showInActive ? 0 : 1;
60 this.c_office_id_name(),
70 return Pman.Dialog.PersonStaff;
72 bulkAdd : function() {
73 //return Pman.Dialog.PersonBulkAdd
76 newDefaults : function() {
80 company_id : Pman.Login.authUser.company_id,
81 company_id_name : Pman.Login.authUser.company_id_name,
82 company_id_address : Pman.Login.authUser.company_id_address,
83 company_id_tel : Pman.Login.authUser.company_id_tel,
84 company_id_fax : Pman.Login.authUser.company_id_fax