public function SheetUpdateWeight($d) { $d->sheetid = intval($d->sheetid); if (count($d->attProc) == 3) { $sum = 0; foreach ($d->attProc as $value) { $sum += $value; } if ($sum == 100) { RecordBookQuery::SheetUpdateWeight($this->db, $d); return $this->ReCalcMarkList($d->sheetid, $d->attProc); } else { return false; } } else { return false; } }