public function onStorePropChange(iUmiEventPoint $e)
 {
     if ($e->getMode() != 'after') {
         return;
     }
     $propName = $e->getParam('property');
     $value = $e->getParam('newValue');
     $entity = $e->getRef('entity');
     if ($entity instanceof iUmiObject && $propName == 'primary' && $value == 1) {
         stores::clearPrimary($entity->getid());
     }
 }
Пример #2
0
echo 'الفرع';
?>
            <?php 
echo $form->dropDownList($model, 'branch_id', CHtml::listData(branchs::model()->findAll(), 'branch_id', 'branch_name'));
?>
            
        </div>

	<div class="row">
           
		<?php 
echo $form->labelEx($model, 'store_id');
?>
          
            <?php 
echo $form->dropDownList($model, 'store_id', CHtml::listData(stores::model()->findAll(), 'store_id', 'store_name'));
?>
  
            		<?php 
echo $form->error($model, 'store_id');
?>
	</div>

	<div class="row">
            <!--
		<?php 
// echo $form->labelEx($model,'supplier_id');
?>
		<?php 
//echo $form->textField($model,'supplier_id');
?>