private void btTimKiem_Click(object sender, EventArgs e) { DMLoaiItemInfor dmLoaiItemInfor = new DMLoaiItemInfor(); dmLoaiItemInfor.TenLoaiItem = txtTenLoaiItem.Text; dgvList.DataSource = DMLoaiItemDataProvider.Search(dmLoaiItemInfor); }
public void TestLoaiItem05_InsertSuccess() { frmDM_LoaiItem frm = new frmDM_LoaiItem(); frm.Oid = 0; frm.isAdd = true; frmChiTiet_LoaiItem frmChiTietLoaiItem = new frmChiTiet_LoaiItem(frm); frmChiTietLoaiItem.SetInput("LoaiItem1", "5", "Unit test ma LoaiItem", 1); frmChiTietLoaiItem.TestSave(); List <DMLoaiItemInfor> list = DMLoaiItemDataProvider.Search(new DMLoaiItemInfor { MaLoaiItem = "5" }); Assert.AreEqual(list.Count, 1); }
private void btTimKiem_Click(object sender, EventArgs e) { grcBase.DataSource = DMLoaiItemDataProvider.Search(new DMLoaiItemInfor { MaLoaiItem = txtMaLoaiItem.Text.Trim() }); }