Ejemplo n.º 1
0
    protected void BindReport(int PortReportId, int Vessel_Id)
    {
        DataSet   ds        = BLL_OPS_VoyageReports.GET_PORT_REPORT(PortReportId, Vessel_Id);
        DataTable dtport    = ds.Tables[0];
        string    strExpr   = "StoppageType = 1";
        DataView  dvNonRain = ds.Tables[1].DefaultView;

        dvNonRain.RowFilter = strExpr;


        string   strExpr2 = "StoppageType = 2";
        DataView dvRain   = ds.Tables[1].Copy().DefaultView;

        dvRain.RowFilter = strExpr2;

        Session["NonRainDt"] = dvNonRain.ToTable().DefaultView.ToTable();
        Session["RainDt"]    = dvRain.ToTable().DefaultView.ToTable();



        fvportreport.DataSource = dtport;
        fvportreport.DataBind();
    }