fixing idxdept
This commit is contained in:
@ -719,10 +719,22 @@ class LogController
|
||||
$rtn=true;
|
||||
return $rtn;
|
||||
}
|
||||
|
||||
public function fn_idxdept(){
|
||||
|
||||
$qry="update tbl_attendanceemployee a, tbl_employee e set a.idxdept = e.idxdept
|
||||
where e._idx=a.idxemployee and a.idxdept=0";
|
||||
$this->executeSP($qry);
|
||||
$qry="update tbl_attendancelist a, tbl_employee e set a.idxdept = e.idxdept
|
||||
where e._idx=a.idxemployee and a.idxdept=0";
|
||||
$this->executeSP($qry);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
$cl = new LogController();
|
||||
$rtn =$cl->index();
|
||||
$rtn =$cl->fn_idxdept();
|
||||
|
||||
#if(isset($_REQUEST['isgetdata'])){
|
||||
# echo "indx";
|
||||
|
||||
Reference in New Issue
Block a user