Esempio n. 1
0
        public BRCls_Book()
        {
            oDBBookController = new DBCls_Books();
            BookID = "";

            ObjectStatus = (int)BookStatus.New;
        }
Esempio n. 2
0
 public BRCls_Book(String[] ArrBook)
 {
     oDBBookController = new DBCls_Books();
     FillInBook(ArrBook);
     ValidateStatus();
 }
Esempio n. 3
0
 public BRCls_Book(String pBookID)
 {
     oDBBookController = new DBCls_Books();
     GetBookByID(pBookID);
     ObjectStatus = (int)BookStatus.NotModified;
 }
Esempio n. 4
0
 public bool LoadBookFromXML(String pXML)
 {
     try
     {
         oDBBookController = new DBCls_Books();
         FillBookWithXML(pXML);
         ValidateStatus();
     }
     catch (Exception ex)
     {
         return false;
     }
     return true;
 }
Esempio n. 5
0
 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;
 }