Esempio n. 1
0
 public CreateStudentAid getStudentAidData(string aID)
 {
     CaseDataBase SDB = new CaseDataBase();
     CreateStudentAid returnValue = new CreateStudentAid();
     if (int.Parse(SDB._StaffhaveRoles[3]) == 1)
     {
         returnValue=SDB.getStudentAidData(aID);
     }
     else
     {
         returnValue.checkNo = _noRole;
         returnValue.errorMsg = _errorMsg;
     }
     StaffDataBase sDB = new StaffDataBase();
     List<string> UserFile = sDB.getStaffDataName(HttpContext.Current.User.Identity.Name);
     if (returnValue.sUnit != UserFile[2] && int.Parse(SDB._StaffhaveRoles[4]) == 0 && UserFile[1].Length > 0)
     {
         returnValue.checkNo = _getcheckNo;
         returnValue.errorMsg = _errorMsg;
     }
     return returnValue;
 }