SetQuery("select * from SummaryStudentStY where acadYear='$xKey'"); } function RSSummaryStudentStYByAcYAndStNum($xKey){ $this->SetQuery("select * from SummaryStudentStY where acadYear='$xKey' and stNum<>0"); } function RSSummaryStudentStYByAcYAndRepeatClassStNum($xKey){ $this->SetQuery("select * from SummaryStudentStY where acadYear='$xKey' and repeatClassStNum<>0"); } function RSSummaryStudentStYByAcYAndOutStNum($xKey){ $this->SetQuery("select * from SummaryStudentStY where acadYear='$xKey' and outStNum<>0"); } function GetSumStNumByAcY($xKey){ $this->SetQuery("select sum(stNum) as num from SummaryStudentStY where acadYear='$xKey'"); if ($result=$this->GetResult()) { return $result['num']; } } function GetSumRepeatClassStNumByAcY($xKey){ $this->SetQuery("select sum(repeatClassStNum) as num from SummaryStudentStY where acadYear='$xKey'"); if ($result=$this->GetResult()) { return $result['num']; } } function GetSumOutStNumByAcY($xKey){ $this->SetQuery("select sum(outStNum) as num from SummaryStudentStY where acadYear='$xKey'"); if ($result=$this->GetResult()) { return $result['num']; } } } //--End class SummaryStudentStY-- ?>