示例#1
0
        private void XROL_Rpt008_rpt_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            try {
                XROL_Rpt008_Bus         oReporteBus = new XROL_Rpt008_Bus();
                List <XROL_Rpt008_Info> oListado    = new List <XROL_Rpt008_Info>();

                int idEmpresa       = Convert.ToInt32(Parameters["p_IdEmpresa"].Value);
                int idPeriodoFiscal = Convert.ToInt32(Parameters["p_PeriodoFiscal"].Value);

                oListado = oReporteBus.GetListPorIdPeriodo(idEmpresa, idPeriodoFiscal, ref mensaje);

                this.DataSource = oListado.ToArray();
            }
            catch (Exception ex)
            {
                oLog.Log_Error(ex.ToString());
            }
        }
示例#2
0
        private void XROL_Rpt008_rpt_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            try {
                XROL_Rpt008_Bus         oReporteBus = new XROL_Rpt008_Bus();
                List <XROL_Rpt008_Info> oListado    = new List <XROL_Rpt008_Info>();

                int idEmpresa       = Convert.ToInt32(Parameters["p_IdEmpresa"].Value);
                int idPeriodoFiscal = Convert.ToInt32(Parameters["p_PeriodoFiscal"].Value);

                oListado = oReporteBus.GetListPorIdPeriodo(idEmpresa, idPeriodoFiscal, ref mensaje);

                this.DataSource         = oListado.ToArray();
                xrPictureBox1.Image     = param.InfoEmpresa.em_logo_Image;
                lblEmpresa.Text         = param.InfoEmpresa.RazonSocial;
                lb_nombrecomercial.Text = param.InfoEmpresa.em_nombre;
            }
            catch (Exception ex)
            {
                oLog.Log_Error(ex.ToString());
            }
        }