public BRCls_Book() { oDBBookController = new DBCls_Books(); BookID = ""; ObjectStatus = (int)BookStatus.New; }
public BRCls_Book(String[] ArrBook) { oDBBookController = new DBCls_Books(); FillInBook(ArrBook); ValidateStatus(); }
public BRCls_Book(String pBookID) { oDBBookController = new DBCls_Books(); GetBookByID(pBookID); ObjectStatus = (int)BookStatus.NotModified; }
public bool LoadBookFromXML(String pXML) { try { oDBBookController = new DBCls_Books(); FillBookWithXML(pXML); ValidateStatus(); } catch (Exception ex) { return false; } return true; }
public bool GetBookByID(String pBookID) { try { oDBBookController = new DBCls_Books(); String[,] ArrBook = oDBBookController.SearchBook(pBookID); if (ArrBook != null) { BookID = ArrBook[0, (int)BookCriteria.cBOOKID]; BookName = ArrBook[0, (int)BookCriteria.cBOOKNAME]; BookAuthor = ArrBook[0, (int)BookCriteria.cBOOKAUTHOR]; BookISBN = ArrBook[0, (int)BookCriteria.cBOOKISBN]; BookDescription = ArrBook[0, (int)BookCriteria.cBOOKDESCRIPTION]; } } catch (Exception ex) { return false; } return true; }