Exemplo n.º 1
0
    public void bindReport()
    {
        if (Request.QueryString["d"] != null && Request.QueryString["L"] != null)
        {
            DataSet ds = new DataSet();
            ds = G_GetPass.Local_Report(Convert.ToInt32(Request.QueryString["d"].ToString()), Request.QueryString["L"].ToString(), Convert.ToInt32(strFY));


            ReportDocument rd = new ReportDocument();
            rd.Load(Server.MapPath("../reports/LocalGodownReport.rpt"));

            rd.Database.Tables[0].SetDataSource(ds.Tables[0]);


            LocalGodown.ReportSource = rd;
            LocalGodown.DataBind();
        }
    }
Exemplo n.º 2
0
    public void bindReport()
    {
        if (Request.QueryString["d"] != null)
        {
            ReportDocument rd = new ReportDocument();
            DataSet        ds = new DataSet();
            if (Request.QueryString["mFlag"] != "GeneralCourierID")
            {
                ds = CourierDetails.SendCourierPrint(float.Parse(Request.QueryString["d"].ToString()), "CourierId", Convert.ToInt32(strFY));
                if (ds.Tables[0].Rows[0]["EmpID"].ToString() != "0")
                {
                    rd.Load(Server.MapPath("../Report/ChetanaSendCourierPrint.rpt"));
                }
                else
                {
                    rd.Load(Server.MapPath("../Report/ChetanaSendCourierPrintNoBranch.rpt"));
                }
            }
            else
            {
                ds = CourierDetails.SendCourierPrintGeneral(float.Parse(Request.QueryString["d"].ToString()), "GeneralCourierID", Convert.ToInt32(strFY));
                if (ds.Tables[0].Rows[0]["EmpID"].ToString() != "0")
                {
                    rd.Load(Server.MapPath("../Report/ChetanaSendCourierGeneralPrint.rpt"));
                }
                else
                {
                    rd.Load(Server.MapPath("../Report/ChetanaSendCourierGeneralPNB.rpt"));
                }
            }
            // ds = CourierDetails.Get_CourierDetailsCheck(Convert.ToString(Request.QueryString["d"].ToString()), "DocNoGrid", Convert.ToInt32(strFY));

            // ds = G_GetPass.Local_Report(Convert.ToInt32(Request.QueryString["d"].ToString()), Request.QueryString["L"].ToString(), Convert.ToInt32(strFY));



            rd.Database.Tables[0].SetDataSource(ds.Tables[0]);


            LocalGodown.ReportSource = rd;
            LocalGodown.DataBind();
        }
    }