public List <DTOTable> LoadTableList() { List <DTOTable> tableList = new List <DTOTable>(); DataTable data = DataProvider.Instance.ExecuteQuery("USP_getTableList"); foreach (DataRow item in data.Rows) { DTOTable table = new DTOTable(item); tableList.Add(table); } return(tableList); }
private void button3_Click(object sender, EventArgs e) { DTOTable table = listView1.Tag as DTOTable; int idBill = BILLDAO.Instance.GetUncheckBillIDByTableID(table.ID); if (idBill != -1) { BILLDAO.Instance.CheckOut(idBill); ShowBill(table.ID); LoadTable(); } MessageBox.Show("Hoa don da dc in"); }