Exemple #1
0
 public function actionDel()
 {
     $ID = $_GET['ID'];
     $bool = DealerGoodsUnit::model()->deleteByPk($ID);
     echo $bool;
 }
Exemple #2
0
              
        </p>

        <p class="fitem">
            <label style=" width: 70px">标杆商品号:</label>
            <input type="text" name="BganGoodsNO" class="width100 input">
            &nbsp;&nbsp;&nbsp;<label>商品规格:</label>
            <input type="text" name="Specifica" class="width100 input">
            &nbsp;&nbsp;
        </p>
        <div style="height: 5px;"></div>
        <p class="fitem" style=" float: left">
            商品单位:
            <?php 
$organID = Commonmodel::getOrganID();
$UnitNames = DealerGoodsUnit::model()->findAll("OrganID = {$organID}");
$UnitName = CHtml::listData($UnitNames, 'UnitName', 'UnitName');
echo CHtml::dropDownList('Unit', 'Unit', $UnitName, array('class' => 'width112 select easyui-validatebox', 'empty' => '选择商品单位', 'required' => "true"));
?>
	
            <!--<input type="text" name="Unit" class="width50 input">-->
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;长度:
            <input type="text" name="Length" validType='floatnum' class="easyui-validatebox  width50 input"> cm
            &nbsp;&nbsp;
        </p>
        <p class="fitem" style=" float: left">
            <label>商品重量:</label>
            <input type="text" name="Weight" validType='floatnum' class="easyui-validatebox  width50 input"> kg
            &nbsp;
        </p>
        <p class="fitem">