public function actionSimpantambah()
 {
     $Detaildinas = new Sadetail();
     if ($Detaildinas->load(Yii::$app->request->post()) && $Detaildinas->validate()) {
         $hsl = \Yii::$app->request->post();
         $kdro = $hsl['Sadetail']['KD_SA'];
         $kdBarang = $hsl['Sadetail']['KD_BARANG'];
         $nmBarang = Barang::findOne(['KD_BARANG' => $kdBarang]);
         $kdUnit = $hsl['Sadetail']['UNIT'];
         $rqty = $hsl['Sadetail']['RQTY'];
         $note = $hsl['Sadetail']['NOTE'];
         /*
          * Detail Request Order
          **/
         $Detaildinas->KD_SA = $kdro;
         $Detaildinas->CREATED_AT = date('Y-m-d H:i:s');
         $Detaildinas->NM_BARANG = $nmBarang->NM_BARANG;
         $Detaildinas->KD_BARANG = $kdBarang;
         $Detaildinas->UNIT = $kdUnit;
         $Detaildinas->RQTY = $rqty;
         $Detaildinas->NOTE = $note;
         $Detaildinas->STATUS = 0;
         $Detaildinas->dinasve();
         return $this->redirect(['index?SalesorderSearch[KD_SA]=' . $kdro]);
     } else {
         return $this->redirect(['index']);
     }
 }