private void btnInPhieu_Click(object sender, EventArgs e) { List <BaoCao_ChiTietXTHInfor> list = DeNghiXuatTieuHaoProvider.Instance.GetInPhieuDeNghiXuatTieuHao(business.ChungTu.IdChungTu); rpt_BC_PhieuDeNghiXuatTieuHao rpt = new rpt_BC_PhieuDeNghiXuatTieuHao(); List <BaoCao_ChiTietXTHInfor> lst = new List <BaoCao_ChiTietXTHInfor>(list); rpt.DataSource = lst; rpt.ShowPreview(); }
private void btnInPhieu_Click(object sender, EventArgs e) { try { List <BaoCao_ChiTietXTHInfor> list = DeNghiXuatTieuHaoProvider.Instance.GetInPhieuDeNghiXuatTieuHao(OID); rpt_BC_PhieuDeNghiXuatTieuHao rpt = new rpt_BC_PhieuDeNghiXuatTieuHao(); List <BaoCao_ChiTietXTHInfor> lst = new List <BaoCao_ChiTietXTHInfor>(list); rpt.DataSource = lst; rpt.ShowPreview(); } catch (Exception ex) { #if DEBUG MessageBox.Show(ex.ToString()); #else MessageBox.Show(ex.Message); #endif EventLogProvider.Instance.WriteLog(ex.ToString() + "\nUser: "******"\nKho: " + Declare.IdKho, this.Name); } }