add rfid_key to card and key

This commit is contained in:
2015-12-28 21:03:52 +01:00
parent f6b483a9f9
commit 3b2f19b909
18 changed files with 108 additions and 11 deletions

View File

@@ -23,7 +23,7 @@ class CardSearch extends Card
{
return [
[['id_card', 'status', 'type'], 'integer'],
[[ 'searchCustomerName', 'number', 'created_at', 'updated_at'], 'safe'],
[[ 'searchCustomerName', 'number','rfid_key', 'created_at', 'updated_at'], 'safe'],
];
}
@@ -72,6 +72,7 @@ class CardSearch extends Card
]);
$query->andFilterWhere(['like', 'card.number', $this->number]);
$query->andFilterWhere(['like', 'card.rfid_key', $this->rfid_key]);
$query->andFilterWhere(['like', 'customer.name', $this->searchCustomerName]);
return $dataProvider;