Ejemplo n.º 1
0
        //revised
        public static void overdayslistLibraryTicket()
        {
            bool found_chk = false;

            LibraryTicket.print_header();
            for (int i = 0; i < MyTicket.mytk.Count; i++)
            {
                if (int.Parse(MyTicket.mytk[i].status) == 1 && int.Parse(MyTicket.mytk[i].overDays) != 0)
                {
                    // Reader.inqReaderbyID(MyTicket.mytk[i].readerID),
                    // Book.inqBookbyID(MyTicket.mytk[i].bookID),
                    Console.WriteLine("{0,-30}{1,-30}{2,-19}{3,-18}{4,-18}{5,-17}{6,-13}{7,-13}",
                                      Reader.inqReaderbyID(MyTicket.mytk[i].readerID).readerName,
                                      Book.inqBookbyID(MyTicket.mytk[i].bookID).bookName,
                                      Book.convertENVN(MyTicket.mytk[i].isEN),
                                      MyTicket.mytk[i].fromDate,
                                      MyTicket.mytk[i].toDate,
                                      MyTicket.mytk[i].overDays,
                                      Book.converPricetag(MyTicket.mytk[i].standardRate),
                                      Book.converPricetag(MyTicket.mytk[i].amount)
                                      );
                    found_chk = true;
                }
            }
            if (found_chk == false)
            {
                Console.WriteLine("\n Khong co thong tin Phieu Muon Sach qua han.");
            }
        }
Ejemplo n.º 2
0
 //in thông tin đã được lưu thực tế trong txt file
 public static void inquire_all_lib_ticket()
 {
     LibraryTicket.print_header();
     for (int i = 0; i < MyTicket.mytk.Count; i++)
     {
         Console.WriteLine("{0,-8}{1,-8}{2,-12}{3,-12}{4,-16}{5,-16}{6,-15}{7,-8}{8,-8}",
                           MyTicket.mytk[i].readerID,
                           MyTicket.mytk[i].bookID,
                           MyTicket.mytk[i].isEN,
                           MyTicket.mytk[i].status,
                           MyTicket.mytk[i].fromDate,
                           MyTicket.mytk[i].toDate,
                           MyTicket.mytk[i].overDays,
                           MyTicket.mytk[i].standardRate.ToString(),
                           MyTicket.mytk[i].amount.ToString()
                           );
     }
 }