Пример #1
0
        public void TestOrderType05_InsertSuccess()
        {
            frmDM_OrderType frm = new frmDM_OrderType();

            frm.Oid   = 0;
            frm.isAdd = true;
            frmChiTiet_OrderType frmChiTietOrderType = new frmChiTiet_OrderType(frm);

            frmChiTietOrderType.SetInput("Bán ngoài nước", "004001NuocNgoai", "Unit test OrderType", 1, "004001NN");
            frmChiTietOrderType.TestSave();
            List <DMOrderTypeInfor> list = DMOrderTypeProvider.Search(new DMOrderTypeInfor {
                OrderType = "004001NuocNgoai"
            });

            Assert.AreEqual(list.Count, 1);
        }
Пример #2
0
 private void btnTimKiem_Click(object sender, EventArgs e)
 {
     grcBase.DataSource = DMOrderTypeProvider.Search(new DMOrderTypeInfor {
         OrderType = txtTimKiemMa.Text.Trim(), Name = txtTimKiemTen.Text.Trim()
     });
 }