Exemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            

            bool flag = busHDX.TaoHoaDonXuat(hdx, arrList);
            SystemLog systemLog = new SystemLog(SellMedicine.IDUser, DateTime.Now.ToString(), "Tạo đơn thuốc");
            busUser.SetSystemLog(systemLog);
            if (flag)
            {
                HoaDonXuat hdxTemp = busHDX.GetLastHoaDonXuat();
                RPTDonThuoc rptDT = new RPTDonThuoc(hdxTemp.MaHDX);
                rptDT.ShowDialog();
                dgDT(flag);
                this.Close();
            }
        }
Exemplo n.º 2
0
 public void XemChiTietDonThuoc()
 {
     if (lVSanhSachHDX.SelectedItems.Count > 0)
     {
         HoaDonXuat hdx = (HoaDonXuat)arrLAllHDX.ToArray()[lVSanhSachHDX.FocusedItem.Index];
         RPTDonThuoc rptDT = new RPTDonThuoc(hdx.MaHDX);
         rptDT.ShowDialog();
     }
     else
     {
         MessageBox.Show(this, "Chọn một hóa đơn", "Thông báo");
     }
 }