public void BindInspAttchment() { DataTable dtAttachment = BLL_OPS_PortReport.GET_PORT_Incidents(Convert.ToInt32(Request.QueryString["PreArrivalId"].ToString()), Convert.ToInt32(Request.QueryString["Vessel_ID"].ToString()), Convert.ToInt32(Request.QueryString["Office_ID"].ToString())).Tables[0]; gvInspectionAttachment.DataSource = dtAttachment; gvInspectionAttachment.DataBind(); }
protected void BindItems(int Vessel_ID) { int Record_count = 0; ViewState["Sort_Column"] = ""; ViewState["Sort_Direction"] = ""; gvPreArrivalReportIndex.DataSource = BLL_OPS_PortReport.Get_PreArrivalPortInfo(Vessel_ID); gvPreArrivalReportIndex.DataBind(); //ucCustomPagerItems.CountTotalRec = Record_count.ToString(); //ucCustomPagerItems.BuildPager(); }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["VesselId"] != null && Request.QueryString["PortInfoReportId"] != null && Request.QueryString["OfficeId"] != null) { _Vessel_Id = int.Parse(Request.QueryString["VesselId"].ToString()); _PortInfoReportId = int.Parse(Request.QueryString["PortInfoReportId"].ToString()); _Office_Id = int.Parse(Request.QueryString["OfficeId"].ToString()); DataSet ds = BLL_OPS_PortReport.Get_PORT_PreArrival_Info(_PortInfoReportId, _Vessel_Id, _Office_Id); dgNav.DataSource = ds.Tables[0]; dgNav.DataBind(); GridViewHelper helper = new GridViewHelper(this.dgCounter); helper.RegisterGroup("SubType", true, true); helper.GroupHeader += new GroupEvent(helper_GroupHeader); dgCounter.DataSource = ds.Tables[1]; dgCounter.DataBind(); dgPsc.DataSource = ds.Tables[2]; dgPsc.DataBind(); } }
protected void BindReport() { DataSet ds = BLL_OPS_PortReport.Get_PreArrivalInfoDetail(Id, VesselId); if (ds.Tables[0] != null) { fvPortInfoReport.DataSource = ds.Tables[0]; fvPortInfoReport.DataBind(); lblGridHeader.Text = ds.Tables[0].Rows[0]["CompanyName"].ToString() + " performance history in this port"; } if (ds.Tables[1] != null) { GridView1.DataSource = ds.Tables[1]; GridView1.DataBind(); } if (ds.Tables[2] != null) { GridViewHelper helper = new GridViewHelper(this.GridView2); helper.RegisterGroup("SubType", true, true); helper.GroupHeader += new GroupEvent(helper_GroupHeader); GridView2.DataSource = ds.Tables[2]; GridView2.DataBind(); } if (ds.Tables[3] != null) { GridView3.DataSource = ds.Tables[3]; GridView3.DataBind(); } if (ds.Tables[4] != null) { GridView4.DataSource = ds.Tables[4]; GridView4.DataBind(); } if (ds.Tables[5] != null) { GridView5.DataSource = ds.Tables[5]; GridView5.DataBind(); } }