public function actionInsert($id,$barcode){
if(Yii::$app->request->isAjax){
if(Yii::$app->request->isGet){
$id_barcode=Probirki::findOne(['barcode'=>$barcode])->id;
Yii::$app->db->createCommand()->insert('worklist_probirki', [
'id_probirka' => $id_barcode,
'id_worklist' =>$id,
])->execute();
return $this->redirect('/laboratory/worklist/spisok?id='.$id);
}
}
}