Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["VesselId"] != null && Request.QueryString["PortInfoReportId"] != null)
        {
            _Vessel_Id        = int.Parse(Request.QueryString["VesselId"].ToString());
            _PortInfoReportId = int.Parse(Request.QueryString["PortInfoReportId"].ToString());

            DataSet ds = BLL_OPS_VoyageReports.Get_PortInfoReport(_Vessel_Id, _PortInfoReportId);
            fvPortInfoReport.DataSource = ds.Tables[0];
            fvPortInfoReport.DataBind();


            DataSet ds1 = BLL_OPS_VoyageReports.Get_PilotInfo(_Vessel_Id, _PortInfoReportId);
            gvPilotInfo.DataSource = ds1.Tables[0];
            gvPilotInfo.DataBind();

            DataTable dt = BLL_OPS_VoyageReports.Get_PRT_Attachment(1, _PortInfoReportId, _Vessel_Id);
            imgListRight.DataSource = dt;
            imgListRight.DataBind();
        }
    }