示例#1
0
        public void TestKho05_InsertSuccess()
        {
            frmDM_Kho frm = new frmDM_Kho();

            frm.Oid   = 0;
            frm.isAdd = true;
            frmChiTiet_Kho frmChiTietKho = new frmChiTiet_Kho(frm);

            frmChiTietKho.SetInput("Kho nhập", "KN1111", "KN1111", "abcdefgh", "12345678", "hanhbdgmail", "123456", "UnitsTest Kho", 1);
            frmChiTietKho.TestSave();
            List <DMKhoGridLoadInfo> list = DMKhoDataProvider.Search(new DMKhoGridLoadInfo()
            {
                MaKho = "KN1111"
            });

            Assert.AreEqual(1, list.Count);
        }
示例#2
0
 private void btnFilter_Click(object sender, EventArgs e)
 {
     grcBase.DataSource = DMKhoDataProvider.Search(new DMKhoGridLoadInfo {
         MaKho = txtFilterMaKho.Text.Trim(), TenKho = txtFilterTenKho.Text.Trim()
     });
 }