コード例 #1
0
        private void btnPreview_Click(object sender, EventArgs e)
        {
            if (IsSelValid())
            {
                RT2020.Controls.Reporting.Viewer viewer = new RT2020.Controls.Reporting.Viewer();

                string[,] param =
                {
                    { "FromToTxNumber", this.cboFrom.Text.Trim()                                          },
                    { "ToTxNumber",     this.cboTo.Text.Trim()                                            },
                    { "FromTxDate",     this.dtpTxDateFrom.Value.ToString(DateTimeHelper.GetDateFormat()) },
                    { "ToTxDate",       this.dtpTxDateTo.Value.ToString(DateTimeHelper.GetDateFormat())   },
                    { "PrintedBy",      StaffEx.GetStaffNameById(ConfigHelper.CurrentUserId)              },
                    { "PrintedOn",      DateTime.Now.ToString(DateTimeHelper.GetDateFormat())             },
                    { "DateFormat",     DateTimeHelper.GetDateFormat()                                    },
                    { "CompanyName",    SystemInfoEx.CurrentInfo.Default.CompanyName                      },
                    { "StockCode",      SystemInfoHelper.Settings.GetSystemLabelByKey("STKCODE")          },
                    { "Appendix1",      SystemInfoHelper.Settings.GetSystemLabelByKey("APPENDIX1")        },
                    { "Appendix2",      SystemInfoHelper.Settings.GetSystemLabelByKey("APPENDIX2")        },
                    { "Appendix3",      SystemInfoHelper.Settings.GetSystemLabelByKey("APPENDIX3")        }
                };

                viewer.Datasource           = BindData();
                viewer.ReportDatasourceName = "RT2020_Controls_Reporting_DataSource_vwRptBatchTXF";
                viewer.ReportName           = "RT2020.Inventory.Transfer.Reports.WorksheetRdl.rdlc";
                viewer.Parameters           = param;
                viewer.Show();
            }
        }
コード例 #2
0
        private void cmdPreview_Click(object sender, EventArgs e)
        {
            if (IsSelValid())
            {
                string[,] param =
                {
                    { "FromTxNumber", this._TxNumberFrom                                                },
                    { "ToTxNumber",   this._TxNumberTo                                                  },
                    { "FromTxDate",   this.dtpTxDateFrom.Value.ToString(DateTimeHelper.GetDateFormat()) },
                    { "ToTxDate",     this.dtpTxDateTo.Value.ToString(DateTimeHelper.GetDateFormat())   },
                    { "PrintedOn",    DateTime.Now.ToString(DateTimeHelper.GetDateTimeFormat())         },
                    { "PrintedBy",    StaffEx.GetStaffNameById(ConfigHelper.CurrentUserId)              },
                    { "DateFormat",   DateTimeHelper.GetDateFormat()                                    },
                    { "CompanyName",  SystemInfoEx.CurrentInfo.Default.CompanyName                      },
                    { "StockCode",    SystemInfoHelper.Settings.GetSystemLabelByKey("STKCODE")          },
                    { "Appendix1",    SystemInfoHelper.Settings.GetSystemLabelByKey("APPENDIX1")        },
                    { "Appendix2",    SystemInfoHelper.Settings.GetSystemLabelByKey("APPENDIX2")        },
                    { "Appendix3",    SystemInfoHelper.Settings.GetSystemLabelByKey("APPENDIX3")        }
                };

                RT2020.Controls.Reporting.Viewer oViewer = new RT2020.Controls.Reporting.Viewer();

                oViewer.Datasource           = BindData();
                oViewer.ReportName           = "RT2020.Inventory.Adjustment.Reports.HistoryRdl.rdlc";
                oViewer.ReportDatasourceName = "RT2020_Controls_Reporting_DataSource_vwRptSubLedgerADJ";
                oViewer.Parameters           = param;

                oViewer.Show();
            }
        }
コード例 #3
0
        private void cmdPreview_Click()
        {
            string[,] param =
            {
                { "FromTxNumber", this.txtTxNumber.Text.Trim()                                    },
                { "ToTxNumber",   this.txtTxNumber.Text.Trim()                                    },
                { "FromTxDate",   this.dtpRecvDate.Value.ToString(DateTimeHelper.GetDateFormat()) },
                { "ToTxDate",     this.dtpRecvDate.Value.ToString(DateTimeHelper.GetDateFormat()) },
                { "PrintedOn",    DateTime.Now.ToString(DateTimeHelper.GetDateTimeFormat())       },
                { "PrintedBy",    StaffEx.GetStaffNameById(ConfigHelper.CurrentUserId)            },
                { "StockCode",    SystemInfoHelper.Settings.GetSystemLabelByKey("STKCODE")        },
                { "Appendix1",    SystemInfoHelper.Settings.GetSystemLabelByKey("APPENDIX1")      },
                { "Appendix2",    SystemInfoHelper.Settings.GetSystemLabelByKey("APPENDIX2")      },
                { "Appendix3",    SystemInfoHelper.Settings.GetSystemLabelByKey("APPENDIX3")      },
                { "DateFormat",   DateTimeHelper.GetDateFormat()                                  },
                { "CompanyName",  SystemInfoEx.CurrentInfo.Default.CompanyName                    }
            };

            RT2020.Controls.Reporting.Viewer oViewer = new RT2020.Controls.Reporting.Viewer();

            oViewer.Datasource           = BindData();
            oViewer.ReportName           = "RT2020.Inventory.GoodsReturn.Reports.WorksheetRdl.rdlc";
            oViewer.ReportDatasourceName = "RT2020_Controls_Reporting_DataSource_vwRptBatchCAP";
            oViewer.Parameters           = param;

            oViewer.Show();
        }