Example #1
0
 public List<AchievementAssessment> CreatAchievementAssessment(AchievementAssessment sTemperatureData)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     //aDB.caseBTFunction();
     //if (int.Parse(aDB._StaffhaveRoles[2]) == 1)
     //{
         return aDB.CreatAchievementAssessment(sTemperatureData);
     //}
     //else
     //{
     //    return null;
     //}
 }
Example #2
0
 public string[] searchBookDataResultCount(SearchBook bookData)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     aDB.libraryFunction();
     if (int.Parse(aDB._StaffhaveRoles[3]) == 1)
     {
         return aDB.searchBookResultCount(bookData);
     }
     else
     {
         return new string[2] { _getcheckNo, _errorMsg };
     }
 }
Example #3
0
 public string[] UpdateTeachServiceSupervisor(TeachServiceSupervisor sTemperatureData)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     //aDB.caseBTFunction();
     //if (int.Parse(aDB._StaffhaveRoles[2]) == 1)
     //{
     return aDB.UpdateTeachServiceSupervisor(sTemperatureData);
     //}
     //else
     //{
     //    return null;
     //}
 }
Example #4
0
 public List<VoiceDistance> showVoiceDistance(int ID)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     return aDB.showVoiceDistance(ID);
 }
Example #5
0
 public string[] updateHearLossDataBase(List<UpdateHearLoss> sTemperatureData ,int SID)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     aDB.caseBTFunction();
     if (int.Parse(aDB._StaffhaveRoles[2]) == 1)
     {
         return aDB.UpdateHearLoss(sTemperatureData,SID);
     }
     else
     {
         return new string[2] { _noRole, _errorMsg };
     }
 }
Example #6
0
 public List<AchievementAssessmentLoad> ShowCaseIspRecord(int id)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     return aDB.ShowCaseIspRecord(id);
 }
Example #7
0
 public List<SearchStudentResult> ShowStudent(int SID)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     //aDB.caseBTFunction();
     //if (int.Parse(aDB._StaffhaveRoles[2]) == 1)
     //{
         return aDB.ShowStudent(SID);
     //}
     //else
     //{
     //    return null;
     //}
 }
Example #8
0
 public List<SearchClassName> SearchClassNameDataBaseCase(int index, SearchClassName SearchStaffCondition)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     return aDB.SearchClassNameDataBaseCase(index, SearchStaffCondition);
 }
Example #9
0
 public List<UpdateHearLoss> searchHearLossDataBase(int SID,int page)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     //aDB.caseBTFunction();
     //if (int.Parse(aDB._StaffhaveRoles[2]) == 1)
     //{
         return aDB.searchHearLossDataBase(SID,page);
     //}
     //else
     //{
     //    return null;
     //}
 }
Example #10
0
 public List<ShowCaseISPRecord> SearchCaseISPRecord(int index, SearchCaseISPRecord SearchStructure)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     return aDB.SearchCaseISPRecord(index, SearchStructure, 0);
 }
Example #11
0
 public string[] SearchClassNameCountCase(SearchClassName SearchStaffCondition)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     return aDB.SearchClassNameCountCase(SearchStaffCondition);
 }
Example #12
0
 public string[] searchBookRecordDataCount(SearchBookStatistics BookStatisticsData)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     aDB.libraryFunction();
     if (int.Parse(aDB._StaffhaveRoles[3]) == 1)
     {
         return aDB.SearchBookRecordCount(BookStatisticsData);
     }
     else
     {
         return new string[2] { _noRole, _errorMsg };
     }
 }
Example #13
0
 public List<CreateBookSystem> searchBookRecordData(int index, SearchBookStatistics BookStatisticsData)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     return aDB.SearchBookRecord(index, BookStatisticsData);
 }
Example #14
0
 public List<CreateBookBorrow> searchBookDateData(SearchBookStatistics BookStatisticsData)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     aDB.libraryFunction();
     List<CreateBookBorrow> returnValue = new List<CreateBookBorrow>();
     if (int.Parse(aDB._StaffhaveRoles[3]) == 1)
     {
         returnValue = aDB.SearchBookDate(BookStatisticsData);
     }
     else
     {
         CreateBookBorrow addValue=new CreateBookBorrow();
         addValue.checkNo = _noRole;
         addValue.errorMsg = _errorMsg;
         returnValue.Add(addValue);
     }
     return returnValue;
 }
Example #15
0
 public string[] setBookData1(SearchBookResult bookDataResult)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     aDB.libraryFunction();
     if (int.Parse(aDB._StaffhaveRoles[1]) == 1)
     {
         return aDB.setBookData1(bookDataResult);
     }
     else
     {
         return new string[2] { _noRole, _errorMsg };
     }
 }
Example #16
0
 public List<SingleClassShortTerm> SearchSingleTeach(int index, SearchCaseISPRecord SearchStructure)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     return aDB.SearchSingleTeach(index, SearchStructure, 0);
 }
Example #17
0
    public List<CreateBookSystem> setBookReturnDataBase(CreateBookSystem bookSystemData)
    {
        AdministrationDataBase aDB = new AdministrationDataBase();
        aDB.libraryFunction();
        List<CreateBookSystem> returnValue = new List<CreateBookSystem>();
        if (int.Parse(aDB._StaffhaveRoles[3]) == 1)
        {
            returnValue=aDB.setBookReturnDataBase(bookSystemData);

        }
        else
        {
            CreateBookSystem addVlaue = new CreateBookSystem();
            addVlaue.checkNo = _noRole;
            addVlaue.errorMsg = _errorMsg;
            returnValue.Add(addVlaue);
        }
        return returnValue;
    }
Example #18
0
 public string[] SearchSingleTeachCount(SearchCaseISPRecord SearchStructure)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     return aDB.SearchSingleTeachCount(SearchStructure, 1);
 }
Example #19
0
 public List<AchievementAssessmentLoad> ShowCaseStudy(int ID)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     //aDB.caseBTFunction();
     //if (int.Parse(aDB._StaffhaveRoles[0]) == 1)
     //{
         return aDB.ShowCaseStudy(ID);
     //}
     //else
     //{
     //    return null;
     //}
 }
Example #20
0
 public List<TeachServiceInspect> SearchTeachServiceInspect(int index, SearchStudent SearchStructure)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     return aDB.SearchTeachServiceInspect(index, SearchStructure, 1);
 }
Example #21
0
 public List<AchievementAssessmentLoad> ShowTeachServiceSupervisor(int id)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     return aDB.ShowTeachServiceSupervisor(id);
 }
Example #22
0
 public List<TeachServiceSupervisor> SearchTeachServiceSupervisor(int index, SearchStudent SearchStructure)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     return aDB.SearchTeachServiceSupervisor(index, SearchStructure, 0);
 }
Example #23
0
 public List<CaseStudy> UpdateCaseStudy(CaseStudy sTemperatureData)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     //aDB.caseBTFunction();
     //if (int.Parse(aDB._StaffhaveRoles[2]) == 1)
     //{
         return aDB.UpdateCaseStudy(sTemperatureData);
     //}
     //else
     //{
     //    return null;
     //}
 }
Example #24
0
 public string[] searchUserDataCardNum(SearchUser userData)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     return aDB.searchUserDataCardNum(userData);
 }
Example #25
0
 public string[] updateTeacherTemperatureDataBase(List<CreateTeacherSystem> sTemperatureData)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     aDB.caseBTFunction();
     if (int.Parse(aDB._StaffhaveRoles[2]) == 1)
     {
         return aDB.updateTeacherTemperatureData(sTemperatureData);
     }
     else
     {
         return new string[2] { _noRole, _errorMsg };
     }
 }
Example #26
0
 public List<VoiceDistance> SearchVoiceDistance(int index, SearchStudent SearchStructure)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     return aDB.SearchVoiceDistance(index, SearchStructure, 0);
 }
Example #27
0
 public string[] UpdateVoiceDistance(List<VoiceDistance> sTemperatureData)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     //aDB.caseBTFunction();
     //if (int.Parse(aDB._StaffhaveRoles[2]) == 1)
     //{
         return aDB.UpdateVoiceDistance(sTemperatureData);
     //}
     //else
     //{
     //    return null;
     //}
 }
Example #28
0
 public string[] SearchVoiceDistanceCount(SearchStudent SearchStructure)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     //aDB.caseBTFunction();
     //if (int.Parse(aDB._StaffhaveRoles[2]) == 1)
     //{
         return aDB.SearchVoiceDistanceCount(SearchStructure, 1);
     //}
     //else
     //{
     //    return new string[2] { _noRole, _errorMsg };
     //}
 }
Example #29
0
 public List<CaseISPRecord> CreatCaseISPRecord(CaseISPRecord sTemperatureData)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     //aDB.caseBTFunction();
     //if (int.Parse(aDB._StaffhaveRoles[2]) == 1)
     //{
         return aDB.CreatCaseISPRecord(sTemperatureData);
     //}
     //else
     //{
     //    return null;
     //}
 }
Example #30
0
 public List<CreateBookResult> searchBookDataResult(int index, SearchBook bookData)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     return aDB.searchBookResult(index, bookData);
 }