Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            item_analysis rpt = new item_analysis();

            rpt.Site = this.Site;
            return(rpt);
        }
Esempio n. 2
0
        private void linkLabel4_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            try
            {
                repoerts_form   rp_form   = new repoerts_form();
                ParameterFields pars      = new ParameterFields();
                item_analysis   i_anal_rp = new item_analysis();


                ParameterField         start_field_par = new ParameterField();
                ParameterDiscreteValue start_dis       = new ParameterDiscreteValue();
                start_field_par.Name = "start_date";
                start_dis.Value      = anal_start_date.Text;
                start_field_par.CurrentValues.Add(start_dis);
                pars.Add(start_field_par);


                ParameterField         it_id_field_par = new ParameterField();
                ParameterDiscreteValue it_id_dis       = new ParameterDiscreteValue();
                it_id_field_par.Name = "item_id";

                if (anal_sanf_cod_bx.Text.Trim() != "")
                {
                    it_id_dis.Value = anal_sanf_cod_bx.Text.Trim();
                }
                else
                {
                    it_id_dis.Value = 1;
                }

                it_id_field_par.CurrentValues.Add(it_id_dis);
                pars.Add(it_id_field_par);



                ParameterField         end_field_par = new ParameterField();
                ParameterDiscreteValue end_dis       = new ParameterDiscreteValue();
                end_field_par.Name = "end_date";
                end_dis.Value      = anal_end_date.Text;
                end_field_par.CurrentValues.Add(end_dis);
                pars.Add(end_field_par);

                rp_form.rep_crst.ReportSource = i_anal_rp;

                rp_form.rep_crst.ParameterFieldInfo = pars;
                i_anal_rp.Refresh();
                rp_form.ShowDialog();
            }
            catch (Exception dd) { MessageBox.Show(dd.Message); }
        }