//hiển thị danh sách vé chưa phát ra public List <veDTO> hienthivetrong() { String Query = "select * from VE where bienSo is null and maSoVe!='Vé tháng'"; DataTable data = new DataTable(); data = dataprovider.Instance.ExcuteQuery(Query); List <veDTO> listve = new List <veDTO>(); foreach (DataRow item in data.Rows) { veDTO dt = new veDTO(item); listve.Add(dt); } return(listve); }
//hiển thị danh sách vé đang dùng public List <veDTO> hienthivedangdung() { String Query = "select * from VE where bienSo is not null"; DataTable data = new DataTable(); data = dataprovider.Instance.ExcuteQuery(Query); List <veDTO> listve = new List <veDTO>(); foreach (DataRow item in data.Rows) { //VEXE.Add(item["maSoVe"]); veDTO dt = new veDTO(item); listve.Add(dt); } return(listve); }