public function indexAction()
 {
     $form = new MedicineForm();
     $form->addElementsForm();
     $form->setDecorators(array('FormElements', 'Form'));
     $form->removeDecorator('form');
     $this->view->medicine = $form;
     $formStockControl = new MedicineForm();
     $formStockControl->addElementsStockControl();
     $formStockControl->setDecorators(array('FormElements', 'Form'));
     $formStockControl->removeDecorator('form');
     $this->view->medicinestockcontrol = $formStockControl;
     $formExistantStock = new MedicineForm();
     $formExistantStock->addElementsExistantStock();
     $formExistantStock->setDecorators(array('FormElements', 'Form'));
     $formExistantStock->removeDecorator('form');
     $this->view->medicineexistantstock = $formExistantStock;
     //options dos campos select
     $measurementunitModel = new MeasurementunitModel();
     $selectMeasurementunit = $measurementunitModel->fetchAll();
     $supplyModel = new SupplyModel();
     $selectSupply = $supplyModel->fetchAll($supplyModel->getSupplyNotInMedicine());
     $supplycentreModel = new SupplycentreModel();
     $selectSupplycentre = $supplycentreModel->fetchAll();
     $supplierModel = new SupplierModel();
     $selectSupplier = $supplierModel->fetchAll();
     $this->view->selectMeasurementunit = $selectMeasurementunit;
     $this->view->selectSupply = $selectSupply;
     $this->view->selectSupplycentre = $selectSupplycentre;
     $this->view->selectSupplier = $selectSupplier;
 }
 public function examinationmaterialAction()
 {
     $cdmaterial = $this->_request->getParam("cdmaterial");
     $cdexaminationmaterial = $this->_request->getParam("cdexaminationmaterial");
     $examinationModel = new ExaminationModel();
     $examinationmaterialModel = new ExaminationmaterialModel();
     $materialModel = new MaterialModel();
     $attributeModel = new AttributeModel();
     $attributeEMModel = new attributeexaminationmaterialModel();
     $physicallocationModel = new PhysicallocationModel();
     $timeFrameModel = new TimeframeModel();
     $equipmentModel = new EquipmentModel();
     $supplyModel = new SupplyModel();
     $supplyCentreModel = new SupplycentreModel();
     if (isset($cdmaterial) && $cdmaterial != 0) {
         $dataMaterial = $materialModel->fetchRow($materialModel->getMaterialByCd($cdmaterial));
         $nmmaterial = $dataMaterial["nmmaterial"];
         $this->view->examinationmaterialCDmaterial = $cdmaterial;
         $this->view->examinationmaterialNMmaterial = $nmmaterial;
     }
     if (isset($cdexaminationmaterial) && $cdexaminationmaterial != 0) {
         $fginterfacingvalue = $examinationmaterialModel->fetchRow($examinationmaterialModel->getFGInterfacingByExaminationMaterial($cdexaminationmaterial));
         $this->addInterfaceCheckbox($fginterfacingvalue['fginterfacing']);
         $this->view->cdexaminationmaterial = $cdexaminationmaterial;
     } else {
         $this->addInterfaceCheckbox('2');
     }
     $subexaminationData = $examinationModel->fetchAll();
     $this->view->subexaminationData = $subexaminationData;
     $materialData = $materialModel->fetchAll();
     $this->view->materialData = $materialData;
     // GET attributos relacionados ao material
     $attributeData = $attributeEMModel->fetchAll($attributeEMModel->getAttributeExaminationMaterial($cdexaminationmaterial));
     $this->view->attributeData = $attributeData;
     $physicallocationParentData = $physicallocationModel->getParentLocation();
     $this->view->parentlocationData = $physicallocationParentData;
     $physicallocationChildData = $physicallocationModel->getLocationByParentNotNull();
     $this->view->parentlocationData = $physicallocationChildData;
     $timeFrameData = $timeFrameModel->fetchAll($timeFrameModel->getAllTimeFrames());
     $this->view->timeFrameData = $timeFrameData;
     $equipmentData = $equipmentModel->fetchAll();
     $this->view->equipmentData = $equipmentData;
     $itemData = $supplyModel->fetchAll();
     $this->view->itemMaterialData = $itemData;
     $supplyCentreData = $supplyCentreModel->fetchAll();
     $this->view->supplyCentreData = $supplyCentreData;
 }
 public function __construct()
 {
     parent::__construct();
     $supplyModel = new SupplyModel();
     $supplyData = $supplyModel->fetchAll($supplyModel->getAllSuplly());
     $supplyCentre = new SupplycentreModel();
     $supplyCentreData = $supplyCentre->fetchAll($supplyCentre->getAllSupllyCentre());
     $this->_cdsupply = new Zend_Form_Element_Select('cdsupply');
     $this->_cdsupply->setRegisterInArrayValidator(false);
     $this->_cdsupply->addMultiOption("0", 'Selecione');
     foreach ($supplyData as $supply) {
         $this->_cdsupply->addMultiOption($supply->cdsupply, $supply->nmsupply);
     }
     $this->_cdsupply->setLabel("Item");
     $this->_cdsupply->setDecorators($this->_decoratorsDefault);
     $this->_cdsupply->setAttrib("id", "stockview_cdsupply");
     $this->_cdsupply->setAttrib("class", "search_combobox");
     $this->_cdsupply->setRequired(true);
     $this->_cdsupplycentre = new Zend_Form_Element_Select('cdsupplycentre');
     $this->_cdsupplycentre->setRegisterInArrayValidator(false);
     $this->_cdsupplycentre->addMultiOption("0", 'Selecione');
     foreach ($supplyCentreData as $supplyCentre) {
         $this->_cdsupplycentre->addMultiOption($supplyCentre->cdsupplycentre, $supplyCentre->idsupplycentre);
     }
     $this->_cdsupplycentre->setLabel("Centro");
     $this->_cdsupplycentre->setDecorators($this->_decoratorsDefault);
     $this->_cdsupplycentre->setAttrib("id", "stockview_cdsupplycentre");
     $this->_cdsupplycentre->setAttrib("class", "search_combobox");
     $this->_cdsupplycentre->setRequired(true);
     $this->_initialDate = new Zend_Form_Element_Text('initialDate');
     $this->_initialDate->setLabel("Data Inicial");
     $this->_initialDate->setDecorators($this->_decoratorsRequired);
     $this->_initialDate->setAttrib("id", "stockview_initialDate");
     $this->_initialDate->setAttrib("class", "datepicker");
     $this->_initialDate->setRequired(true);
     $this->_finalDate = new Zend_Form_Element_Text('finalDate');
     $this->_finalDate->setLabel("Data Final");
     $this->_finalDate->setDecorators($this->_decoratorsRequired);
     $this->_finalDate->setAttrib("id", "stockview_finalDate");
     $this->_finalDate->setAttrib("class", "datepicker");
     $this->_finalDate->setRequired(true);
     $this->_submitservice = new Zend_Form_Element_Button('submitservice');
     $this->_submitservice->setLabel("Consultar");
     $this->_submitservice->setAttrib("id", "stockview_submitservice");
 }
 public function __construct()
 {
     parent::__construct();
     $supplyModel = new SupplycentreModel();
     //fetchaAll eesta buscando as informações no $suplyModel e enviando para o vetor
     $supplyDadosArray = $supplyModel->fetchAll();
     $supplyCentreModel = new SupplierModel();
     $supplyCentreDadosArray = $supplyCentreModel->fetchAll();
     $suppliesModel = new SupplyModel();
     $suppliesDadosArray = $suppliesModel->fetchAll();
     ///////////////
     $suppliesMUModel = new MeasurementUnitModel();
     $suppliesMUDadosArray = $suppliesMUModel->fetchAll();
     /* >>> Nº Protocolo */
     $this->_cdsupplyentryprotocol = new Zend_Form_Element_Text('cdsupplyentryprotocol');
     $this->_cdsupplyentryprotocol->setDecorators($this->_decoratorsDefault);
     $this->_cdsupplyentryprotocol->setLabel("N° Protocolo");
     $this->_cdsupplyentryprotocol->setAttrib("id", "supplyentry_cdsupplyentryprotocol");
     $this->_cdsupplyentryprotocol->setAttrib("disabled", "disabled");
     /* <<< */
     /* >>> Código */
     $this->_rowId = new Zend_Form_Element_Hidden('rowId');
     $this->_rowId->setDecorators($this->_decoratorsDefault);
     $this->_rowId->setAttrib("id", "rowId");
     /* <<< */
     /* >>> Campo Oculto RowId */
     $this->_cdsupplyentrycode = new Zend_Form_Element_Hidden('cdsupplyentrycode');
     $this->_cdsupplyentrycode->setDecorators($this->_decoratorsDefault);
     $this->_cdsupplyentrycode->setAttrib("id", "supplyentry_cdsupplyentrycode");
     /* <<< */
     /* >>> Fornecedor * */
     $this->_cdsupplyentrysupplier = new Zend_Form_Element_Select('cdsupplyentrysupplier');
     /////////////////////////////
     $this->_cdsupplyentrysupplier->addMultiOption("", "Selecione");
     //$this->_cdsupplyentrysupplier->setRequired(true);
     foreach ($supplyCentreDadosArray as $supplyCentreDado) {
         $this->_cdsupplyentrysupplier->addMultiOption($supplyCentreDado->cdsupplier, $supplyCentreDado->nmsupplier);
     }
     $this->_cdsupplyentrysupplier->setDecorators($this->_decoratorsDefault);
     $this->_cdsupplyentrysupplier->setLabel("Fornecedor");
     $this->_cdsupplyentrysupplier->setAttrib("id", "supply_flow_cdsupplycentreto");
     //////////////////////////
     $this->_cdsupplyentrysupplier->setAttrib("class", "search_combobox");
     /* <<< */
     /* >>> Lote * */
     $this->_cdsupplyinvoice = new Zend_Form_Element_Text('cdsupplyinvoice');
     $this->_cdsupplyinvoice->setDecorators($this->_decoratorsDefault);
     $this->_cdsupplyinvoice->setLabel("Nota Fiscal");
     $this->_cdsupplyinvoice->setAttrib("id", "supplyentry_cdsupplyinvoice");
     $this->_cdsupplyinvoice->setAttrib("size", "10");
     /* <<< */
     /* >>> Centro de Estocagem ou Consumo * */
     $this->_cdsupplycentrefrom = new Zend_Form_Element_Select('cdsupplycentrefrom');
     //$this->_cdsupplycentrefrom->setRequired(true);
     $this->_cdsupplycentrefrom->addMultiOption("", "Selecione");
     foreach ($supplyDadosArray as $supplyCentreDado) {
         $this->_cdsupplycentrefrom->addMultiOption($supplyCentreDado->cdsupplycentre, $supplyCentreDado->idsupplycentre);
     }
     $this->_cdsupplycentrefrom->setDecorators($this->_decoratorsDefault);
     $this->_cdsupplycentrefrom->setLabel("Centro de Estocagem ou Consumo");
     $this->_cdsupplycentrefrom->setAttrib("id", "supply_flow_cdsupplycentrefrom");
     $this->_cdsupplycentrefrom->setAttrib("class", "search_combobox");
     /* <<< */
     /* >>> Data de Recebimento */
     $this->_dtcheckout = new Zend_Form_Element_Text('dtcheckout');
     $this->_dtcheckout->setLabel("Data de Recebimento");
     $this->_dtcheckout->setDecorators($this->_decoratorsDefault);
     $this->_dtcheckout->setAttrib("id", "supply_flow_dtcheckout");
     $this->_dtcheckout->setAttrib("class", "mask_date");
     $this->_dtcheckout->setAttrib("class", "datepicker");
     $this->_dtcheckout->setAttrib("size", "10");
     /* <<< */
     /* >>> Horário */
     $this->_hrcheckin = new Zend_Form_Element_Text('hrcheckin');
     $this->_hrcheckin->setLabel("Horário");
     $this->_hrcheckin->setDecorators($this->_decoratorsDefault);
     $this->_hrcheckin->setAttrib("id", "supply_flow_hrcheckin");
     $this->_hrcheckin->setAttrib("class", "mask_time");
     $this->_hrcheckin->setAttrib("size", "10");
     /* <<< */
     /* >>> Item */
     $this->_cdsupply = new Zend_Form_Element_Select('cdsupply');
     $this->_cdsupply->addMultiOption("", "Selecione");
     foreach ($suppliesDadosArray as $supplyCentreDado) {
         $this->_cdsupply->addMultiOption($supplyCentreDado->cdsupply, $supplyCentreDado->nmsupply);
     }
     $this->_cdsupply->setDecorators($this->_decoratorsDefault);
     $this->_cdsupply->setLabel("Item");
     $this->_cdsupply->setAttrib("id", "supply_flow_cdsupply");
     $this->_cdsupply->setAttrib("class", "search_combobox");
     /* <<< */
     /* >>> Quantidade */
     $this->_cdsupplyqty = new Zend_Form_Element_Text('cdsupplyqty');
     $this->_cdsupplyqty->setDecorators($this->_decoratorsDefault);
     $this->_cdsupplyqty->setLabel("Quantidade");
     $this->_cdsupplyqty->setAttrib("id", "supplyentry_cdsupplyqty");
     $this->_cdsupplyqty->setAttrib("size", "10");
     $this->_cdsupplyqty->setAttrib("class", "mask_price_db");
     /* <<< */
     /* >>> Unidade Medida */
     $this->_cdsupplyunit = new Zend_Form_Element_Text('cdsupplyunit');
     $this->_cdsupplyunit->setDecorators($this->_decoratorsDefault);
     $this->_cdsupplyunit->setLabel("Unidade Medida");
     $this->_cdsupplyunit->setAttrib("id", "supply_flow_cdsupplyunit");
     $this->_cdsupplyunit->setAttrib("size", "10");
     $this->_cdsupplyunit->setAttrib("disabled", "disabled");
     /* <<< */
     /* >>> Valor Unitário */
     $this->_cdsupplyvalue = new Zend_Form_Element_Text('cdsupplyvalue');
     $this->_cdsupplyvalue->setDecorators($this->_decoratorsDefault);
     $this->_cdsupplyvalue->setLabel("Valor Unit. (R\$)");
     $this->_cdsupplyvalue->setAttrib("id", "supplyentry_cdsupplyvalue");
     $this->_cdsupplyvalue->setAttrib("size", "10");
     $this->_cdsupplyvalue->setAttrib("class", "mask_price_db");
     /* <<< */
     /* >>> Lote */
     $this->_cdsupplylot = new Zend_Form_Element_Text('cdsupplylot');
     $this->_cdsupplylot->setDecorators($this->_decoratorsDefault);
     $this->_cdsupplylot->setLabel("Lote");
     $this->_cdsupplylot->setAttrib("id", "supplyentry_cdsupplylot");
     $this->_cdsupplylot->setAttrib("size", "10");
     /* <<< */
     /* >>> Validade */
     $this->_dtvalidity = new Zend_Form_Element_Text('dtvalidity');
     $this->_dtvalidity->setLabel("Validade");
     $this->_dtvalidity->setDecorators($this->_decoratorsDefault);
     $this->_dtvalidity->setAttrib("id", "supply_flow_dtvalidity");
     $this->_dtvalidity->setAttrib("class", "mask_date");
     $this->_dtvalidity->setAttrib("class", "datepicker");
     /* <<< */
     $this->_btadd = new Zend_Form_Element_Button('btadd');
     $this->_btadd->setLabel("Adicionar");
     $this->_btadd->setDecorators(array(array('ViewHelper'), array('HtmlTag', array('tag' => 'li'))));
     $this->_btadd->setAttrib("class", "submit_button");
 }
 public function autosupplycentresearchAction()
 {
     $supplycentre = $this->_request->getParam('term');
     $supplycentreModel = new SupplycentreModel();
     $supplycentreData = $supplycentreModel->fetchAll('idsupplycentre like "%' . $supplycentre . '%"');
     $json = '[';
     $first = true;
     foreach ($supplycentreData as $row) {
         if (!$first) {
             $json .= ',';
         } else {
             $first = false;
         }
         $json .= '{"id":"' . $row['cdsupplycentre'] . '", "value":"' . $row['idsupplycentre'] . '"}';
     }
     $json .= ']';
     echo $json;
 }
 public function __construct()
 {
     parent::__construct();
     $supplyModel = new SupplyModel();
     $supplyDadosArray = $supplyModel->fetchAll();
     $supplyCentreModel = new SupplycentreModel();
     $supplyCentreDadosArray = $supplyCentreModel->fetchAll();
     /*>>> Origem(Centro Estocador)*/
     $this->_cdsupplycentrefrom = new Zend_Form_Element_Select('cdsupplycentrefrom');
     $this->_cdsupplycentrefrom->setRegisterInArrayValidator(false);
     $this->_cdsupplycentrefrom->setRequired(true);
     $this->_cdsupplycentrefrom->addMultiOption("", "Selecione");
     foreach ($supplyCentreDadosArray as $supplyCentreDado) {
         $this->_cdsupplycentrefrom->addMultiOption($supplyCentreDado->cdsupplycentre, $supplyCentreDado->idsupplycentre);
     }
     $this->_cdsupplycentrefrom->setDecorators($this->_decoratorsRequired);
     $this->_cdsupplycentrefrom->setLabel("Origem(Centro Estocador)");
     $this->_cdsupplycentrefrom->setAttrib("id", "supply_flow_cdsupplycentrefrom");
     /*<<<*/
     /*>>> Destino(Centro de Consumo)*/
     $this->_cdsupplycentreto = new Zend_Form_Element_Select('cdsupplycentreto');
     $this->_cdsupplycentreto->setRegisterInArrayValidator(false);
     $this->_cdsupplycentreto->addMultiOption("", "Selecione");
     $this->_cdsupplycentreto->setRequired(true);
     foreach ($supplyCentreDadosArray as $supplyCentreDado) {
         $this->_cdsupplycentreto->addMultiOption($supplyCentreDado->cdsupplycentre, $supplyCentreDado->idsupplycentre);
     }
     $this->_cdsupplycentreto->setDecorators($this->_decoratorsRequired);
     $this->_cdsupplycentreto->setLabel("Destino(Centro de Consumo)");
     $this->_cdsupplycentreto->setAttrib("id", "supply_flow_cdsupplycentreto");
     /*<<<*/
     /*>>> Tipo de Movimentação*/
     $this->_fgsupplyioreason = new Zend_Form_Element_Select('fgsupplyioreason');
     $this->_fgsupplyioreason->setRegisterInArrayValidator(false);
     $this->_fgsupplyioreason->addMultiOptions(array("" => "Selecione", "1" => "Consumo", "2" => "Empréstimo", "3" => "Devolução", "4" => "Estocagem", "5" => "Descarte"));
     $this->_fgsupplyioreason->setDecorators($this->_decoratorsRequired);
     $this->_fgsupplyioreason->setRequired(true);
     $this->_fgsupplyioreason->setLabel("Tipo de Movimentação");
     $this->_fgsupplyioreason->setAttrib("id", "supply_flow_fgsupplyioreason");
     /*<<<*/
     /*>>> Item*/
     $this->_cdsupply = new Zend_Form_Element_Select('cdsupply');
     $this->_cdsupply->setRegisterInArrayValidator(false);
     $this->_cdsupply->addMultiOption("", "Selecione");
     foreach ($supplyDadosArray as $supplyDado) {
         $this->_cdsupply->addMultiOption($supplyDado->cdsupply, $supplyDado->idsupply . " - " . $supplyDado->nmsupply);
     }
     $this->_cdsupply->setDecorators($this->_decoratorsRequired);
     $this->_cdsupply->setRequired(true);
     $this->_cdsupply->setLabel("Item");
     $this->_cdsupply->setAttrib("id", "supply_flow_cdsupply");
     $this->_cdsupply->setAttrib("class", "search_combobox");
     /*<<<*/
     /*>>> Item*/
     $this->_qtquantity = new Zend_Form_Element_Text('qtquantity');
     $this->_qtquantity->setLabel("Quantidade");
     $this->_qtquantity->setRequired(true);
     $this->_qtquantity->setDecorators($this->_decoratorsRequired);
     $this->_qtquantity->setAttrib("id", "supply_flow_qtquantity");
     $this->_qtquantity->setAttrib("class", "mask_decimal");
     /*<<<*/
     $this->_measurementunit = new Zend_Form_Element_Text('measurementunit');
     $this->_measurementunit->setLabel("Unidade de Medida");
     $this->_measurementunit->setDecorators($this->_decoratorsDefault);
     $this->_measurementunit->setAttrib("id", "supply_flow_measurementunit");
     $this->_measurementunit->setAttrib("disabled", "disabled");
     $this->_button_add_supply_flow = new Zend_Form_Element_Button('button_add_supply_flow');
     $this->_button_add_supply_flow->setLabel('Adicionar');
     $this->_button_add_supply_flow->setDecorators(array(array('ViewHelper'), array('HtmlTag', array('tag' => 'li'))));
     $this->_button_add_supply_flow->setAttrib("class", "button_add_supply_flow");
     $this->_dtcheckout = new Zend_Form_Element_Text('dtcheckout');
     $this->_dtcheckout->setLabel("Data de Saída");
     $this->_dtcheckout->setDecorators($this->_decoratorsDefault);
     $this->_dtcheckout->setAttrib("id", "supply_flow_dtcheckout");
     $this->_dtcheckout->setAttrib("class", "mask_date");
     $this->_dtcheckout->setAttrib("class", "datepicker");
     $this->_dtcheckout_time = new Zend_Form_Element_Text('dtcheckout_time');
     $this->_dtcheckout_time->setLabel("Horário");
     $this->_dtcheckout_time->setDecorators($this->_decoratorsDefault);
     $this->_dtcheckout_time->setAttrib("id", "supply_flow_dtcheckout_time");
     $this->_dtcheckout_time->setAttrib("class", "mask_time");
     $this->_dtcheckin = new Zend_Form_Element_Text('dtcheckin');
     $this->_dtcheckin->setLabel("Data de Entrada");
     $this->_dtcheckin->setDecorators($this->_decoratorsDefault);
     $this->_dtcheckin->setAttrib("id", "supply_flow_dtcheckin");
     $this->_dtcheckin->setAttrib("class", "mask_date");
     $this->_dtcheckin->setAttrib("class", "datepicker");
     $this->_dtcheckin_time = new Zend_Form_Element_Text('dtcheckin_time');
     $this->_dtcheckin_time->setLabel("Horário");
     $this->_dtcheckin_time->setDecorators($this->_decoratorsDefault);
     $this->_dtcheckin_time->setAttrib("id", "supply_flow_dtcheckin_time");
     $this->_dtcheckin_time->setAttrib("class", "mask_time");
 }
 public function __construct()
 {
     parent::__construct();
     $measurementunitModel = new MeasurementunitModel();
     $measurementunitDadosArray = $measurementunitModel->fetchAll();
     $supplycentreModel = new SupplycentreModel();
     $supplycentreDadosArray = $supplycentreModel->fetchAll();
     $supplierModel = new SupplierModel();
     $supplierDadosArray = $supplierModel->fetchAll();
     $supplyModel = new SupplyModel();
     $supplyDados = $supplyModel->fetchAll($supplyModel->getSupplyNotInMedicine());
     //Cód. medicamento
     $this->_idmedicine = new Zend_Form_Element_Text('idmedicine');
     $this->_idmedicine->setLabel("Cód. Medicamento");
     $this->_idmedicine->setDecorators($this->_decoratorsRequired);
     $this->_idmedicine->setAttrib("size", "11");
     $this->_idmedicine->setRequired(true);
     //Nome/Descrição do Medicamento
     $this->_nmmedicine = new Zend_Form_Element_Text('nmmedicine');
     $this->_nmmedicine->setLabel("Nome/Descrição do Medicamento");
     $this->_nmmedicine->setDecorators($this->_decoratorsRequired);
     $this->_nmmedicine->setAttrib("id", "nmcenter");
     $this->_nmmedicine->setAttrib("size", "35");
     $this->_nmmedicine->setRequired(true);
     //Princípio Ativo
     $this->_nmactive = new Zend_Form_Element_text('nmactive');
     $this->_nmactive->setLabel("Princípio Ativo");
     $this->_nmactive->setDecorators($this->_decoratorsDefault);
     $this->_nmactive->setAttrib("size", "35");
     //Unidade de Medida
     $this->_cdmeasurementunit = new Zend_Form_Element_select('cdmeasurementunit');
     $this->_cdmeasurementunit->addMultiOption("", "Selecione");
     foreach ($measurementunitDadosArray as $measurementunitDado) {
         $this->_cdmeasurementunit->addMultiOption($measurementunitDado->cdmeasurementunit, $measurementunitDado->idnotation);
     }
     $this->_cdmeasurementunit->setLabel("Unidade de Medida");
     $this->_cdmeasurementunit->setDecorators($this->_decoratorsRequired);
     $this->_cdmeasurementunit->setAttrib("class", "search_combobox");
     $this->_cdmeasurementunit->setRequired(true);
     //Item do Estoque
     $this->_cdsupplymedicine = new Zend_Form_Element_select('cdsupply');
     $this->_cdsupplymedicine->addMultiOption("", "Selecione");
     foreach ($supplyDados as $supply) {
         $this->_cdsupplymedicine->addMultiOption($supply->cdsupply, $supply->nmsupply);
     }
     $this->_cdsupplymedicine->setLabel("Item");
     $this->_cdsupplymedicine->setDecorators($this->_decoratorsDefault);
     $this->_cdsupplymedicine->setAttrib("id", "cdsupplymedicine");
     $this->_cdsupplymedicine->setAttrib("class", "search_combobox");
     //Quantidade do Item
     $this->_nrsupplyquantity = new Zend_Form_Element_text('nrsupplyquantity');
     $this->_nrsupplyquantity->setLabel("Quantidade");
     $this->_nrsupplyquantity->setDecorators($this->_decoratorsDefault);
     $this->_nrsupplyquantity->setAttrib("size", "10");
     $this->_nrsupplyquantity->setAttrib("disabled", "disabled");
     $this->_nrsupplyquantity->setAttrib("class", "numeric");
     //Valor da unidade
     $this->_vlsupplyunit = new Zend_Form_Element_text('vlsupplyunit');
     $this->_vlsupplyunit->setLabel("Valor Unit.");
     $this->_vlsupplyunit->setDecorators($this->_decoratorsDefault);
     $this->_vlsupplyunit->setAttrib("size", "10");
     $this->_vlsupplyunit->setAttrib("disabled", "disabled");
     $this->_vlsupplyunit->setAttrib("class", "mask_price");
     $this->_cdsupplycentre = new Zend_Form_Element_select('cdsupplycentre');
     $this->_cdsupplycentre->addMultiOption("", "Selecione");
     foreach ($supplycentreDadosArray as $supplycentre) {
         $this->_cdsupplycentre->addMultiOption($supplycentre->cdsupplycentre, $supplycentre->idsupplycentre);
     }
     $this->_cdsupplycentre->setLabel("Centro");
     $this->_cdsupplycentre->setDecorators($this->_decoratorsRequired);
     $this->_cdsupplycentre->setAttrib("class", "search_combobox");
     $this->_cdsupplier = new Zend_Form_Element_select('cdsupplier');
     $this->_cdsupplier->addMultiOption("", "Selecione");
     foreach ($supplierDadosArray as $supplier) {
         $this->_cdsupplier->addMultiOption($supplier->cdsupplier, $supplier->nmsupplier);
     }
     $this->_cdsupplier->setLabel("Fornecedor");
     $this->_cdsupplier->setDecorators($this->_decoratorsRequired);
     $this->_cdsupplier->setAttrib("class", "search_combobox");
 }