コード例 #1
0
        public List <SachDTO> GetSelectedReceiptBooks(string ReceiptID)
        {
            List <SachDTO> results = new List <SachDTO>();

            if (ListReceipt.Count == 0)
            {
                ListReceipt = phieuMuonDAL.LoadListReceipt();
            }

            foreach (PhieuMuonDTO item in ListReceipt)
            {
                if (item.Mapm == ReceiptID)
                {
                    string[] masach = item.Masach.Split(' ');
                    for (int i = 0; i < masach.Length; ++i)
                    {
                        results.Add(sachBUS.GetBookDetails(masach[i]));
                    }
                }
            }

            return(results);
        }