예제 #1
0
        public static MediaModel3 Parse(MediaDS.TabBorrowRow mediaRow)
        {
            if (mediaRow == null)
            {
                return(null);
            }

            MediaModel3 media = new MediaModel3();

            media.MediaId    = mediaRow.MediaID;
            media.BorrowDate = mediaRow.BorrowDate.ToString("MM/dd/yyyy");
            media.ReturnDate = mediaRow.ReturnDate.ToString("MM/dd/yyyy");
            media.UID        = mediaRow.UID;
            return(media);
        }
예제 #2
0
        public static BorrowModel Parse(MediaDS.TabBorrowRow mediaRow)
        {
            if (mediaRow == null)
            {
                return(null);
            }

            BorrowModel media = new BorrowModel();

            media.MediaId    = mediaRow.MediaID;
            media.UID        = mediaRow.UID;
            media.borrowDate = mediaRow.BorrowDate.ToString("MM/dd/yyyy");
            media.returnDate = mediaRow.ReturnDate.ToString("MM/dd/yyyy");



            return(media);
        }
예제 #3
0
        public static BorrowModel Parse(MediaDS.TabBorrowRow borrowRow)
        {
            if (borrowRow == null)
            {
                return(null);
            }

            BorrowModel borrow = new BorrowModel();

            borrow.bid              = borrowRow.BID;
            borrow.uid              = borrowRow.UID;
            borrow.mediaId          = borrowRow.MediaID;
            borrow.borrowDate       = borrowRow.BorrowDate.ToString("yyyyMMdd");
            borrow.returnDate       = borrowRow.ReturnDate.ToString("yyyyMMdd");
            borrow.actualReturnDate = borrowRow.ActualReturnDate.ToString("yyyyMMdd");
            borrow.lateFee          = borrowRow.LateFee;

            return(borrow);
        }
예제 #4
0
        /// <summary>
        /// Get data from Table "Borrow" and show on Media Braoser
        /// </summary>
        /// <param name="mediaRow"></param>
        /// <returns></returns>
        public static BRModel Parse(MediaDS.TabBorrowRow mediaRow)
        {
            if (mediaRow == null)
            {
                return(null);
            }
            BRModel media = new BRModel();

            media.MediaID          = mediaRow.MediaID;
            media.BorrowID         = mediaRow.BID;
            media.userID           = mediaRow.UID;
            media.MediaTitle       = mediaRow.MediaTitle;
            media.DateBorrow       = mediaRow.BorrowDate.ToString();
            media.DateReturn       = mediaRow.ReturnDate.ToString();
            media.DateActualReturn = mediaRow.ActualReturnDate.ToString();
            media.Fee = mediaRow.LateFee;

            return(media);
        }