コード例 #1
0
        /// <summary>
        /// Hàm thực hiện để in departement
        /// </summary>
        void callreport()
        {
            string parentcode = com.getValue(this, "code", "");
            int    ret        = 0;

            if (ret >= 0)
            {
                rdlcreport rprp = new rdlcreport();
                rpViewer.Reset();
                ReportDataSource  rpd;
                ReportParameter[] rpp;
                string            filename;
                string            title;
                rprp._default(parentcode, out rpd, out rpp, out filename, out title);
                rpViewer.LocalReport.DataSources.Add(rpd);
                rpViewer.LocalReport.ReportPath = Server.MapPath("/") + filename;
                rpViewer.LocalReport.SetParameters(rpp);
                rpViewer.LocalReport.Refresh();
            }
        }
コード例 #2
0
        void Warehouselevelreport()
        {
            string parentcode = com.getValue(this, "code", "");
            int    ret        = 0;

            if (ret >= 0)
            {
                rdlcreport rprp = new rdlcreport();
                rpViewer.Reset();
                ReportDataSource  rpd;
                ReportParameter[] rpp;
                string            filename;
                string            title;
                //Gọi hàm chuẩn bị report theo đúng chuẩn bị
                rprp.warehouselevel(parentcode, out rpd, out rpp, out filename, out title);
                rpViewer.LocalReport.DataSources.Add(rpd);
                rpViewer.LocalReport.ReportPath = Server.MapPath("/") + filename;
                rpViewer.LocalReport.SetParameters(rpp);
                rpViewer.LocalReport.Refresh();
            }
        }