Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string vcode    = "";
            int    VesselID = 0;

            if (Request.QueryString["vcode"] != null)
            {
                vcode      = Request.QueryString["vcode"].ToString();
                this.Title = "Crew List - " + vcode;
            }

            if (vcode != "")
            {
                pnlVessel.Visible = false;
                VesselID          = objVessel.Get_VesselID_ByCode(vcode);
                FillGridViewAfterSearch(VesselID);
            }
            else
            {
                Load_VesselList();
            }
        }
        string msg1 = String.Format("StaffInfo();");

        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "msgshowdetails", msg1, true);
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string vcode    = "";
            int    VesselID = 0;


            VesselID = UDFLib.ConvertToInteger(Request.QueryString["vid"]);
            if (VesselID == 0)
            {
                if (Request.QueryString["vcode"] != null)
                {
                    vcode = Request.QueryString["vcode"].ToString();
                }
                VesselID = objVessel.Get_VesselID_ByCode(vcode);
            }
            else
            {
                vcode = objVessel.Get_VesselCode_ByID(VesselID);
            }

            if (VesselID != 0)
            {
                FillGridViewAfterSearch(VesselID);

                lblVesselName.Text = vcode.ToUpper();
            }
        }
        string msg1 = String.Format("StaffInfo();");

        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "msgshowdetails", msg1, true);
    }