Example #1
0
 public function OnAutoItem($sender)
 {
     $text = $sender->getValue();
     return Item::findArray('itemname', "itemname like '%{$text}%' and item_type =" . Item::ITEM_TYPE_STUFF);
 }
Example #2
0
 public function editOnClick($sender)
 {
     $item = $sender->owner->getDataItem();
     $tovar = $this->_tovarlist[$item->item_id];
     $this->editdetail->editprice->setText(H::fm($item->price));
     $list = Item::findArray('itemname', 'group_id=' . $item->group_id);
     $this->editdetail->edittovar->setKey($item->item_id);
     $this->editdetail->edittovar->setText($item->itemname);
     $this->editdetail->editquantity->setText($item->quantity / 1000);
     $this->editdetail->editwarranty->setText($item->warranty);
     $this->editdetail->editsn->setText($item->sn);
     $this->editdetail->setVisible(true);
     $this->docform->setVisible(false);
     $this->_rowid = $item->item_id;
 }
Example #3
0
 public function OnAutoItem($sender)
 {
     $text = $sender->getText();
     return Item::findArray('itemname', "itemname like'%{$text}%' and item_type <>" . Item::ITEM_TYPE_SERVICE);
 }