Пример #1
0
 protected function _initFields()
 {
     $tabs = $this->_form->add(new Kwf_Form_Container_Tabs());
     $tabs->setBorder(true);
     $tabs->setActiveTab(0);
     // **** General Info
     $tab = $tabs->add();
     $tab->setTitle(trlKwf('General Info'));
     $tab->fields->add(new Kwf_Form_Field_TextField('requestNumber', trlKwf('Task number')))->setWidth(400)->setAllowBlank(false);
     $companyModel = Kwf_Model_Abstract::getInstance('Linkdata');
     $companySelect = $companyModel->select()->whereEquals('name', 'Компании для ПЗ')->order('name');
     $tab->fields->add(new Kwf_Form_Field_Select('subCompanyId', trlKwf('Customer')))->setValues($companyModel)->setSelect($companySelect)->setWidth(400)->setAllowBlank(false);
     $tab->fields->add(new Kwf_Form_Field_TimeField('flightStartTime', trlKwf('Start Time')))->setIncrement(5);
     $airplanesModel = Kwf_Model_Abstract::getInstance('Airplanes');
     $airplanesSelect = $airplanesModel->select();
     $tab->fields->add(new Kwf_Form_Field_Select('planeId', trlKwf('Airplane')))->setValues($airplanesModel)->setSelect($airplanesSelect)->setWidth(400)->setAllowBlank(false);
     $objModel = Kwf_Model_Abstract::getInstance('Linkdata');
     $objSelect = $objModel->select()->whereEquals('name', 'Цели');
     $tab->fields->add(new Kwf_Form_Field_Select('objectiveId', trlKwf('Objective')))->setValues($objModel)->setSelect($objSelect)->setWidth(400);
     $groupModel = Kwf_Model_Abstract::getInstance('Linkdata');
     $groupSelect = $groupModel->select()->whereEquals('name', 'Тип экипажа');
     $tab->fields->add(new Kwf_Form_Field_Select('groupId', trlKwf('Group type')))->setValues($groupModel)->setSelect($groupSelect)->setWidth(400)->setAllowBlank(false);
     $tab->fields->add(new Kwf_Form_Field_TextArea('comments', trlKwf('Comment')))->setHeight(70)->setWidth(400);
     $tab->fields->add(new Kwf_Form_Field_Checkbox('status', trlKwf('Done')));
     $tab = $tabs->add();
     $tab->setTitle(trlKwf('Landpoints'));
     $landpointsModel = Kwf_Model_Abstract::getInstance('Landpoints');
     $landpointsSelect = $landpointsModel->select()->order('description');
     $multifields = new Kwf_Form_Field_MultiFields('FlightLandpoints');
     $multifields->setMinEntries(0);
     $multifields->fields->add(new Kwf_Form_Field_Select('landpointId', trlKwf('Destination')))->setValues($landpointsModel)->setSelect($landpointsSelect)->setAllowBlank(false);
     $tab->fields->add($multifields);
 }
Пример #2
0
 protected function _getMultiFields()
 {
     $multifields = new Kwf_Form_Field_MultiFields('Children');
     $multifields->setMinEntries(0);
     if (Kwc_Abstract::getSetting($this->getClass(), 'hasVisible')) {
         $multifields->fields->add(new Kwf_Form_Field_Checkbox('visible', trlKwf('Visible')));
     }
     $multifields->setPosition(true);
     $form = Kwc_Abstract_Form::createChildComponentForm($this->getClass(), 'child');
     $form->setIdTemplate('{component_id}-{id}');
     $multifields->fields->add($form);
     return $multifields;
 }
Пример #3
0
 protected function _initFields()
 {
     $tabs = $this->_form->add(new Kwf_Form_Container_Tabs());
     $tabs->setBorder(true);
     $tabs->setActiveTab(0);
     // **** General Info
     $tab = $tabs->add();
     $tab->setTitle(trlKwf('Personal data'));
     $tab->fields->add(new Kwf_Form_Field_ImageViewer('picture_id', trlKwf('Photo'), 'Picture'));
     $tab->fields->add(new Kwf_Form_Field_File('Picture', trlKwf('File')))->setShowPreview(false)->setAllowOnlyImages(true);
     $tab->fields->add(new Kwf_Form_Field_TextField('firstname', trlKwf('Firstname')))->setAllowBlank(false)->setWidth(400);
     $tab->fields->add(new Kwf_Form_Field_TextField('lastname', trlKwf('Lastname')))->setWidth(400)->setAllowBlank(false);
     $tab->fields->add(new Kwf_Form_Field_TextField('middlename', trlKwf('Middlename')))->setWidth(400)->setAllowBlank(false);
     $tab->fields->add(new Kwf_Form_Field_Select('sex', trlKwf('Sex')))->setValues(array('male' => trlKwf('Male'), 'female' => trlKwf('Female')))->setWidth(90)->setAllowBlank(false);
     $tab->fields->add(new Kwf_Form_Field_DateField('birthDate', trlKwf('Birthdate')));
     $tab->fields->add(new Kwf_Form_Field_TextField('registerAddress', trlKwf('Reg Address')))->setWidth(400);
     $tab->fields->add(new Kwf_Form_Field_TextField('privatePhone', trlKwf('Phone')))->setWidth(400);
     $tab->fields->add(new Kwf_Form_Field_TextArea('comment', trlKwf('Comment')))->setHeight(70)->setWidth(400);
     $tab = $tabs->add();
     $tab->setTitle(trlKwf('Permissions'));
     $userModel = Kwf_Model_Abstract::getInstance('Kwf_User_Model');
     $userSelect = $userModel->select();
     $tab->fields->add(new Kwf_Form_Field_Select('userId', trlKwf('User')))->setValues($userModel)->setSelect($userSelect)->setWidth(350)->setShowNoSelection(true)->setAllowBlank(true);
     $tab->fields->add(new Kwf_Form_Field_Checkbox('visible', trlKwf('Active')));
     $tab = $tabs->add();
     $tab->setTitle(trlKwf('Specialization'));
     $tab->setLabelAlign('top');
     $companyModel = Kwf_Model_Abstract::getInstance('Companies');
     $companySelect = $companyModel->select();
     $tab->fields->add(new Kwf_Form_Field_Select('currentCompanyId', trlKwf('Current company')))->setValues($companyModel)->setSelect($companySelect)->setWidth(400)->setAllowBlank(false);
     $specModel = Kwf_Model_Abstract::getInstance('Specialities');
     $specSelect = $specModel->select();
     $tab->fields->add(new Kwf_Form_Field_Select('specId', trlKwf('Speciality')))->setValues($specModel)->setSelect($specSelect)->setWidth(400)->setAllowBlank(true);
     $subSpecModel = Kwf_Model_Abstract::getInstance('Linkdata');
     $subSpecSelect = $subSpecModel->select()->whereEquals('name', 'Должности');
     $tab->fields->add(new Kwf_Form_Field_Select('positionId', trlKwf('Spec Position')))->setValues($subSpecModel)->setSelect($subSpecSelect)->setWidth(400);
     $specDocModel = Kwf_Model_Abstract::getInstance('Linkdata');
     $specDocSelect = $specDocModel->select()->whereEquals('name', 'Свидетельства специалиста');
     $tab->fields->add(new Kwf_Form_Field_Select('specTypeId', trlKwf('SpecType')))->setValues($specDocModel)->setSelect($specDocSelect)->setWidth(400);
     $tab = $tabs->add();
     $tab->setTitle(trlKwf('Additional groups'));
     $positionsModel = Kwf_Model_Abstract::getInstance('Linkdata');
     $positionsSelect = $positionsModel->select()->whereEquals('name', 'Дополнительные позиции')->order('value');
     $multifields = new Kwf_Form_Field_MultiFields('EmployeeStaffRoles');
     $multifields->setMinEntries(0);
     $multifields->fields->add(new Kwf_Form_Field_Select('groupId', trlKwf('Position')))->setValues($positionsModel)->setSelect($positionsSelect)->setAllowBlank(false);
     $tab->fields->add($multifields);
 }
Пример #4
0
 protected function _getMultiFields()
 {
     $multifields = new Kwf_Form_Field_MultiFields('Children');
     $multifields->setMinEntries(0);
     $multifields->setPosition(true);
     if (Kwc_Abstract::getSetting($this->getClass(), 'hasVisible')) {
         $multifields->fields->add(new Kwf_Form_Field_Checkbox('visible', trlKwf('Visible')));
     }
     foreach (Kwf_Component_Data_Root::getInstance()->getPlugins('Kwf_Component_PluginRoot_Interface_GeneratorProperty') as $plugin) {
         $params = $plugin->getGeneratorProperty(Kwf_Component_Generator_Abstract::getInstance($this->getClass(), 'child'));
         if ($params) {
             $multifields->fields->add(new Kwf_Form_Field_Select($params['name'], $params['label']))->setValues($params['values'])->setDefaultValue($params['defaultValue'])->setData(new Kwf_Component_PluginRoot_GeneratorProperty_Data($plugin, $this));
         }
     }
     $form = Kwc_Abstract_Form::createChildComponentForm($this->getClass(), 'child');
     $form->setIdTemplate('{component_id}-{id}');
     $multifields->fields->add($form);
     return $multifields;
 }
Пример #5
0
 protected function _initFields()
 {
     $tabs = $this->_form->add(new Kwf_Form_Container_Tabs());
     $tabs->setActiveTab(0);
     // **** Persönliche Daten
     $tab = $tabs->add();
     $tab->setTitle('Person');
     $fs = new Kwf_Form_Container_FieldSet(trlKwf('Name and Birthdate'));
     $fs->fields->add(new Kwf_Form_Field_TextField('firstname', trlKwf('Firstname')))->setAllowBlank(false)->setWidth(300);
     $fs->fields->add(new Kwf_Form_Field_TextField('lastname', trlKwf('Lastname')))->setWidth(300)->setAllowBlank(false);
     $fs->fields->add(new Kwf_Form_Field_TextField('title', trlKwf('Title')))->setWidth(300);
     $fs->fields->add(new Kwf_Form_Field_Select('sex', trlKwf('Sex')))->setValues(array('male' => trlKwf('Male'), 'female' => trlKwf('Female')))->setAllowBlank(false);
     $fs->fields->add(new Kwf_Form_Field_DateField('birth_date', trlKwf('Birthdate')));
     $fs->fields->add(new Kwf_Form_Field_TextField('birth_place', trlKwf('Birthplace')))->setWidth(300);
     $fs->fields->add(new Kwf_Form_Field_Checkbox('visible', trlKwf('Active')));
     $fs->fields->add(new Kwf_Form_Field_File('Picture', trlKwf('Photo')));
     $fs->fields->add(new Kwf_Form_Field_GoogleMapsField('position', trlKwf('Position')));
     $tab->fields->add($fs);
     $fs = new Kwf_Form_Container_FieldSet(trlKwf('Foreign Languages'));
     $multifields = new Kwf_Form_Field_MultiFields('MemberLanguages');
     $multifields->setMinEntries(0);
     $multifields->fields->add(new Kwf_Form_Field_PoolSelect('language_id', trlKwf('Language')))->setPool('Languages')->setAllowBlank(false);
     $fs->fields->add($multifields);
     $tab->fields->add($fs);
     // **** Beruf
     $tab = $tabs->add();
     $tab->setTitle(trlKwf('Job'));
     $fs = new Kwf_Form_Container_FieldSet(trlKwf('Job'));
     $fs->setLabelWidth(150);
     $fs->fields->add(new Kwf_Form_Field_PoolSelect('branch_id', trlKwf('Branch Category')))->setPool('Branches')->setListWidth(300)->setWidth(300)->setShowNoSelection(true)->setAllowBlank(true);
     $fs->fields->add(new Kwf_Form_Field_TextField('subbranch', trlKwf('Branch')))->setWidth(300);
     $fs->fields->add(new Kwf_Form_Field_TextField('branch_note', trlKwf('Branch Note')))->setWidth(300);
     $fs->fields->add(new Kwf_Form_Field_TextArea('business_title', trlKwf('Business Title')))->setWidth(300)->setHeight(40)->setMaxLength(170);
     $tab->fields->add($fs);
     $fs = new Kwf_Form_Container_FieldSet(trlKwf('Company adresse'));
     $fs->setLabelWidth(150);
     $fs->fields->add(new Kwf_Form_Field_TextField('company', trlKwf('Company')))->setWidth(300);
     $fs->fields->add(new Kwf_Form_Field_TextField('company_address', trlKwf('Address')))->setWidth(300);
     $fs->fields->add(new Kwf_Form_Field_TextField('company_postcode', trlKwf('ZIP')))->setWidth(100);
     $fs->fields->add(new Kwf_Form_Field_TextField('company_city', trlKwf('City')))->setWidth(300);
     $fs->fields->add(new Kwf_Form_Field_SelectCountry('company_country', trlKwf('Country')))->setShowNoSelection(true)->setListWidth(300)->setWidth(300);
     $fs->fields->add(new Kwf_Form_Field_TextField('company_email', trlKwf('E-Mail')))->setWidth(300)->setVtype('email');
     $fs->fields->add(new Kwf_Form_Field_TextField('company_url', trlKwf('Url')))->setWidth(300)->setVtype('url');
     $tab->fields->add($fs);
     $fs = new Kwf_Form_Container_FieldSet(trlKwf('Telephone'));
     $fs->fields->add(new Kwf_Form_Field_SelectCountry('company_telephone_country', trlKwf('Country')))->setShowNoSelection(true)->setListWidth(300)->setWidth(300);
     $fs->fields->add(new Kwf_Form_Field_TextField('company_telephone_pre', trlKwf('Area Code')));
     $fs->fields->add(new Kwf_Form_Field_TextField('company_telephone', trlKwf('Number')));
     $tab->fields->add($fs);
     $fs = new Kwf_Form_Container_FieldSet(trlKwf('Mobile'));
     $fs->fields->add(new Kwf_Form_Field_Select('company_mobile_country', trlKwf('Country')))->setShowNoSelection(true)->setListWidth(300)->setWidth(300);
     $fs->fields->add(new Kwf_Form_Field_TextField('company_mobile_pre', trlKwf('Area Code')));
     $fs->fields->add(new Kwf_Form_Field_TextField('company_mobile', trlKwf('Number')));
     $tab->fields->add($fs);
     $fs = new Kwf_Form_Container_FieldSet(trlKwf('Fax'));
     $fs->fields->add(new Kwf_Form_Field_Select('company_fax_country', trlKwf('Country')))->setShowNoSelection(true)->setListWidth(300)->setWidth(300);
     $fs->fields->add(new Kwf_Form_Field_TextField('company_fax_pre', trlKwf('Area Code')));
     $fs->fields->add(new Kwf_Form_Field_TextField('company_fax', trlKwf('Number')));
     $tab->fields->add($fs);
     // **** Privat
     $tab = $tabs->add();
     $tab->setTitle(trlKwf('Private'));
     $fs = new Kwf_Form_Container_FieldSet(trlKwf('Adress'));
     $fs->setLabelWidth(130);
     $fs->fields->add(new Kwf_Form_Field_TextField('private_address', trlKwf('Adress')))->setWidth(300);
     $fs->fields->add(new Kwf_Form_Field_TextField('private_postcode', trlKwf('ZIP')))->setWidth(100);
     $fs->fields->add(new Kwf_Form_Field_TextField('private_city', trlKwf('City')))->setWidth(300);
     $fs->fields->add(new Kwf_Form_Field_Select('private_country', trlKwf('Country')))->setShowNoSelection(true)->setListWidth(300)->setWidth(300);
     $fs->fields->add(new Kwf_Form_Field_TextField('private_email', trlKwf('E-Mail')))->setWidth(300)->setVtype('email');
     $fs->fields->add(new Kwf_Form_Field_TextField('private_url', trlKwf('Url')))->setWidth(300)->setVtype('url');
     $tab->fields->add($fs);
     $fs = new Kwf_Form_Container_FieldSet(trlKwf('Telephone'));
     $fs->fields->add(new Kwf_Form_Field_Select('private_telephone_country', trlKwf('Country')))->setShowNoSelection(true)->setListWidth(300)->setWidth(300);
     $fs->fields->add(new Kwf_Form_Field_TextField('private_telephone_pre', trlKwf('Area Code')));
     $fs->fields->add(new Kwf_Form_Field_TextField('private_telephone', trlKwf('Number')));
     $tab->fields->add($fs);
     $fs = new Kwf_Form_Container_FieldSet(trlKwf('Mobile'));
     $fs->fields->add(new Kwf_Form_Field_Select('private_mobile_country', trlKwf('Country')))->setShowNoSelection(true)->setListWidth(300)->setWidth(300);
     $fs->fields->add(new Kwf_Form_Field_TextField('private_mobile_pre', trlKwf('Area Code')));
     $fs->fields->add(new Kwf_Form_Field_TextField('private_mobile', trlKwf('Number')));
     $tab->fields->add($fs);
     $fs = new Kwf_Form_Container_FieldSet(trlKwf('Fax'));
     $fs->fields->add(new Kwf_Form_Field_Select('private_fax_country', trlKwf('Country')))->setShowNoSelection(true)->setListWidth(300)->setWidth(300);
     $fs->fields->add(new Kwf_Form_Field_TextField('private_fax_pre', trlKwf('Area Code')));
     $fs->fields->add(new Kwf_Form_Field_TextField('private_fax', trlKwf('Number')));
     $tab->fields->add($fs);
 }
Пример #6
0
 protected function _initFields()
 {
     $tabs = $this->_form->add(new Kwf_Form_Container_Tabs());
     $tabs->setBorder(true);
     $tabs->setActiveTab(0);
     // **** General Info
     $tab = $tabs->add();
     $tab->setTitle(trlKwf('Personal data'));
     $tab->fields->add(new Kwf_Form_Field_ImageViewer('picture_id', trlKwf('Photo'), 'Picture'));
     $tab->fields->add(new Kwf_Form_Field_File('Picture', trlKwf('File')))->setShowPreview(false)->setAllowOnlyImages(true);
     $tab->fields->add(new Kwf_Form_Field_TextField('firstname', trlKwf('Firstname')))->setAllowBlank(false)->setWidth(400);
     $tab->fields->add(new Kwf_Form_Field_TextField('lastname', trlKwf('Lastname')))->setWidth(400)->setAllowBlank(false);
     $tab->fields->add(new Kwf_Form_Field_TextField('middlename', trlKwf('Middlename')))->setWidth(400)->setAllowBlank(false);
     $tab->fields->add(new Kwf_Form_Field_TextField('firstnameEn', trlKwf('Firstname En')))->setAllowBlank(false)->setWidth(400);
     $tab->fields->add(new Kwf_Form_Field_TextField('lastnameEn', trlKwf('Lastname En')))->setWidth(400)->setAllowBlank(false);
     $tab->fields->add(new Kwf_Form_Field_Select('sex', trlKwf('Sex')))->setValues(array('male' => trlKwf('Male'), 'female' => trlKwf('Female')))->setWidth(90)->setAllowBlank(false);
     $tab->fields->add(new Kwf_Form_Field_DateField('birthDate', trlKwf('Birthdate')));
     $tab->fields->add(new Kwf_Form_Field_TextField('birthPlace', trlKwf('Birthplace')))->setWidth(400);
     $tab->fields->add(new Kwf_Form_Field_TextField('registerAddress', trlKwf('Reg Address')))->setWidth(400);
     $tab->fields->add(new Kwf_Form_Field_TextField('privatePhone', trlKwf('Phone')))->setWidth(400);
     $tab->fields->add(new Kwf_Form_Field_TextField('INN', trlKwf('INN')))->setWidth(400);
     $tab->fields->add(new Kwf_Form_Field_TextArea('comment', trlKwf('Comment')))->setHeight(70)->setWidth(400);
     $tab = $tabs->add();
     $tab->setTitle('Паспорт');
     $tab->fields->add(new Kwf_Form_Field_TextField('ruPassportNumber', 'Паспорт (RU) №'))->setWidth(400)->setAllowBlank(true);
     $tab->fields->add(new Kwf_Form_Field_DateField('ruPassportDate', 'Дата выдачи'));
     $tab->fields->add(new Kwf_Form_Field_TextField('ruPassportCompany', 'Кто выдал'))->setWidth(400);
     $tab->fields->add(new Kwf_Form_Field_TextField('enPassportNumber', 'Паспорт (EN) №'))->setWidth(400)->setAllowBlank(true);
     $tab->fields->add(new Kwf_Form_Field_DateField('enPassportDate', 'Срок окончания'));
     $tab->fields->add(new Kwf_Form_Field_TextField('enPassportCompany', 'Кто выдал'))->setWidth(400);
     $tab = $tabs->add();
     $tab->setTitle(trlKwf('Permissions'));
     $userModel = Kwf_Model_Abstract::getInstance('Kwf_User_Model');
     $userSelect = $userModel->select();
     $tab->fields->add(new Kwf_Form_Field_Select('userId', trlKwf('User')))->setValues($userModel)->setSelect($userSelect)->setWidth(400)->setShowNoSelection(true)->setAllowBlank(true);
     $tab->fields->add(new Kwf_Form_Field_Checkbox('visible', trlKwf('Active')));
     $tab = $tabs->add();
     $tab->setTitle(trlKwf('Specialization'));
     $tab->setLabelAlign('top');
     $companyModel = Kwf_Model_Abstract::getInstance('Companies');
     $companySelect = $companyModel->select();
     $tab->fields->add(new Kwf_Form_Field_Select('currentCompanyId', trlKwf('Current company')))->setValues($companyModel)->setSelect($companySelect)->setWidth(400)->setAllowBlank(false);
     $linkModel = Kwf_Model_Abstract::getInstance('Linkdata');
     $linkSelect = $linkModel->select()->whereEquals('name', 'Подразделения');
     $tab->fields->add(new Kwf_Form_Field_Select('subCompanyId', trlKwf('Subcompany')))->setValues($linkModel)->setSelect($linkSelect)->setWidth(400);
     $tab->fields->add(new Kwf_Form_Field_TextField('orderNumber', trlKwf('Order Number')))->setWidth(400)->setAllowBlank(false);
     $tab->fields->add(new Kwf_Form_Field_DateField('orderDate', trlKwf('Order Date')));
     $tab->fields->add(new Kwf_Form_Field_Checkbox('isAllowed', trlKwf('Allowed')));
     $tab->fields->add(new Kwf_Form_Field_TextField('totalTimeStr', trlKwf('Total Time')))->setWidth(400)->setAllowBlank(true);
     $tab->fields->add(new Kwf_Form_Field_DateField('totalTimeDate', trlKwf('Total Time Date')));
     $specModel = Kwf_Model_Abstract::getInstance('Specialities');
     $specSelect = $specModel->select();
     $tab->fields->add(new Kwf_Form_Field_Select('specId', trlKwf('Speciality')))->setValues($specModel)->setSelect($specSelect)->setWidth(400)->setAllowBlank(true);
     $subSpecModel = Kwf_Model_Abstract::getInstance('Linkdata');
     $subSpecSelect = $subSpecModel->select()->whereEquals('name', 'Должности');
     $tab->fields->add(new Kwf_Form_Field_Select('positionId', trlKwf('Spec Position')))->setValues($subSpecModel)->setSelect($subSpecSelect)->setWidth(400);
     $tab->fields->add(new Kwf_Form_Field_Checkbox('isLeader', trlKwf('Leader')));
     $tab->fields->add(new Kwf_Form_Field_TextField('failsDocNumber', trlKwf('Fails Doc Number')))->setWidth(400);
     $specDocModel = Kwf_Model_Abstract::getInstance('Linkdata');
     $specDocSelect = $specDocModel->select()->whereEquals('name', 'Свидетельства специалиста');
     $tab->fields->add(new Kwf_Form_Field_Select('specTypeId', trlKwf('SpecType')))->setValues($specDocModel)->setSelect($specDocSelect)->setWidth(400);
     $tab = $tabs->add();
     $tab->setTitle(trlKwf('Onboard positions'));
     $positionsModel = Kwf_Model_Abstract::getInstance('Linkdata');
     $positionsSelect = $positionsModel->select()->whereEquals('name', 'Позиции на борту')->order('value');
     $multifields = new Kwf_Form_Field_MultiFields('EmployeeFlightRoles');
     $multifields->setMinEntries(0);
     $multifields->fields->add(new Kwf_Form_Field_Select('groupId', trlKwf('Position')))->setValues($positionsModel)->setSelect($positionsSelect)->setAllowBlank(false);
     $tab->fields->add($multifields);
     $tab = $tabs->add();
     $tab->setTitle(trlKwf('Additional groups'));
     $rolesModel = Kwf_Model_Abstract::getInstance('Linkdata');
     $rolesSelect = $rolesModel->select()->whereEquals('name', 'Дополнительные позиции')->order('value');
     $multifields2 = new Kwf_Form_Field_MultiFields('EmployeeStaffRoles');
     $multifields2->setMinEntries(0);
     $multifields2->fields->add(new Kwf_Form_Field_Select('groupId', trlKwf('Position')))->setValues($rolesModel)->setSelect($rolesSelect)->setAllowBlank(false);
     $tab->fields->add($multifields2);
 }