public frmInPhieuNhap(CuahangNongduoc.BusinessObject.PhieuNhap ph) { m_PhieuNhap = ph; InitializeComponent(); reportViewer.LocalReport.ExecuteReportInCurrentAppDomain(System.Reflection.Assembly.GetExecutingAssembly().Evidence); this.reportViewer.LocalReport.SubreportProcessing += new Microsoft.Reporting.WinForms.SubreportProcessingEventHandler(LocalReport_SubreportProcessing); }
private void toolIn_Click(object sender, EventArgs e) { DataRowView row = (DataRowView)bindingNavigator.BindingSource.Current; if (row != null) { PhieuNhapController ctrlPN = new PhieuNhapController(); String ma_phieu = row["ID"].ToString(); CuahangNongduoc.BusinessObject.PhieuNhap ph = ctrlPN.LayPhieuNhap(ma_phieu); frmInPhieuNhap PhieuNhap = new frmInPhieuNhap(ph); PhieuNhap.Show(); } }