protected void btnView_Click(object sender, EventArgs e)
        {
            string itemCode = ddlItems.SelectedValue;
            int month = Convert.ToInt32(ddlMonths.SelectedValue);

            IList list = bll.GetStockHistory(itemCode, month);
            if (list.Count <= 0)
            {
                lblMessage.Visible = true;
                lblMessage.Text = "No Records Found in One or More Months";
            }
            else
            {
                ReportDocument report = new StockHistoryView();
                report.SetDataSource(list);
                rptStockHistory.ReportSource = report;
                rptStockHistory.RefreshReport();
                lblMessage.Visible = false;
            }

            ddlItems.Visible = false;
            lblItemName.Visible = false;
        }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     StockHistoryView rpt = new StockHistoryView();
     rpt.Site = this.Site;
     return rpt;
 }