Esempio n. 1
0
    public List<StudentWelfareResource> getStudentDataBase3(string ID)
    {
        CaseDataBase SDB = new CaseDataBase();
        List<StudentWelfareResource> returnValue = new List<StudentWelfareResource>();
        if (int.Parse(SDB._StaffhaveRoles[3]) == 1)
        {

            returnValue = SDB.getStudentData3(ID);
        }
        else
        {
            StudentWelfareResource addValue = new StudentWelfareResource();
            addValue.checkNo = _noRole;
            addValue.errorMsg = _errorMsg;
            returnValue.Add(addValue);
        }
        return returnValue;
    }