private void frmReportDocument_Load(object sender, EventArgs e) { DetailDocumentBindingSource.DataSource = re.getDetails(IDDocument); InforDocumentBindingSource.DataSource = re.getInfo(IDDocument); //Insert image this.reportViewer1.RefreshReport(); }
public XtraReportImport(int IDDocument, string ToStore) { InitializeComponent(); this.IDDocument = IDDocument; this.ToStore = ToStore; objectDataSource1.DataSource = re.getInfo(IDDocument); objectDataSource2.DataSource = re.getDetails(IDDocument); pDoiSoThanhChu.Value = re.TienBangChuImport(IDDocument); pDoiSoThanhChu.Visible = false; //if (ToStore=="PL1") //{ // pThuKho.Value = "TRẦN MINH TẤN"; //} //else if (ToStore=="VA1") //{ // pNguoiNhan.Value = "NGUYỄN THỊ KIM LOAN"; // pThuKho.Value = "TRẦN MINH TẤN"; //} //else if (ToStore=="TP1") //{ // pNguoiNhan.Value = "HUỲNH THANH THỦY"; // pThuKho.Value = "PHẠM THỊ XUÂN"; //} }