Ejemplo n.º 1
0
    protected void cmdGet_Click(object sender, EventArgs e)
    {
        BLL_TRV_TravelRequest objTrv = new BLL_TRV_TravelRequest();

        DataTable dt = objTrv.Get_SearchCrew(0, 0, 0, UDFLib.ConvertToInteger(Session["USERID"].ToString()), txtSearch.Text).Tables[0];

        GrdCrew.DataSource = dt;

        GrdCrew.DataBind();
    }
Ejemplo n.º 2
0
    protected void txtSearchPax_TextChanged(object sender, EventArgs e)
    {
        BLL_TRV_TravelRequest obj = new BLL_TRV_TravelRequest();
        DataSet ds = obj.Get_SearchCrew(0, 0, 0, Convert.ToInt32(Session["USERID"].ToString()), txtSearchPax.Text);

        if (ds.Tables[0].Rows.Count == 1)
        {
            int CrewID   = UDFLib.ConvertToInteger(ds.Tables[0].Rows[0]["ID"].ToString());
            int VoyageID = 0;
            AddToDataTable(CrewID, 0, VoyageID);
        }
        else
        {
            txtSearch.Text     = txtSearchPax.Text;
            GrdCrew.DataSource = ds.Tables[0];
            GrdCrew.DataBind();
            string js = "showModal('dvpopup');";
            ScriptManager.RegisterStartupScript(this, this.GetType(), "msg1", js, true);
        }
    }
Ejemplo n.º 3
0
    protected void Search_Pax(int CrewID, int EventID, int VoyageID, string SearchText)
    {
        BLL_TRV_TravelRequest obj = new BLL_TRV_TravelRequest();
        DataSet ds = obj.Get_SearchCrew(CrewID, EventID, VoyageID, Convert.ToInt32(Session["USERID"].ToString()), SearchText);

        GrdCrew.DataSource = ds.Tables[0];
        GrdCrew.DataBind();

        // if this page will be launched from event then only select the vessel.previously it was selecting from crew voyage also.
        if (Request.QueryString["EventID"] != null)
        {
            //Vessel_List.Enabled = false;
            if (ds.Tables[0].Rows.Count > 0)
            {
                Vessel_List.SelectedValue = ds.Tables[0].Rows[0]["Vessel_ID"].ToString();
            }
        }

        else
        {
            Vessel_List.Enabled = true;
        }
    }