示例#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 };
     }
 }
示例#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;
    }
示例#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 };
     }
 }
示例#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;
 }
示例#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 };
     }
 }
示例#6
0
 public List<CreateBook> searchBookData(int index, SearchBook bookData)
 {
     AdministrationDataBase aDB = new AdministrationDataBase();
     aDB.libraryFunction();
     return aDB.searchBook(index, bookData);
 }
示例#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 };
     }
 }