示例#1
0
        public void load()
        {
            PhieukhambenhBUS pkb = new PhieukhambenhBUS();

            pkb.tk();
            hdBus          = new HoadonBUS();
            mahd.Text      = hdBus.autogenerate_mahd().ToString();
            ngayhd.Content = DateTime.UtcNow.Date.ToString();
            load_combobox();
        }
示例#2
0
        public void LapHoaDon()
        {
            HoadonDTO hd = new HoadonDTO();

            hdbus  = new HoadonBUS();
            pkbbus = new PhieukhambenhBUS();
            pkbbus.tk();
            hd.MaHd     = hdbus.autogenerate_mahd().ToString();
            hd.TongTien = hdbus.tienthuoc(hd, "2") + PhieukhambenhDTO.TienKham;
            hd.MaPkb    = "2";
            hd.NgayHd   = DateTime.UtcNow.Date;
            //Assert.AreEqual(true, hdbus.them(hd));
            Assert.AreEqual(100000, hd.TongTien);
        }