Example #1
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 #2
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 #3
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 #4
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 #5
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 #6
0
 public List<CreateBook> searchBookData(int index, SearchBook bookData)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     aDB.libraryFunction();
     return aDB.searchBook(index, bookData);
 }
Example #7
0
 public string[] createBookDataBase(CreateBook bookData)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     aDB.libraryFunction();
     if (int.Parse(aDB._StaffhaveRoles[2]) == 1)
     {
         return aDB.createBookDataBase(bookData);
     }
     else
     {
         return new string[2] { _noRole, _errorMsg };
     }
 }