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