/// <summary>
        /// Date Created: 01/08/2011
        /// Created By: Gabriel Oquialda
        /// (decription) Loads vendor information
        /// -----------------------------------------------
        /// Date Created: 01/08/2011
        /// Created By: Gabriel Oquialda
        /// (decription) Loads vendor information
        /// -----------------------------------------------
        /// Date Modifed:   06/Aug/2013
        /// Created By:     Josephine Gad
        /// (decription)    Load Vendor using VendorMaintenanceBLL.PortAgentsGetByID
        ///                 Use Sessions instead of DataTable
        /// </summary>
        private void vendorInfoLoad(Int16 iLoadType)
        {
            if (Request.QueryString["vmId"].ToString() != "0")
            {
                VendorMaintenanceBLL.GetPortAgentByID(GlobalCode.Field2Int(uoHiddenFieldPortAgentIdInt.Value), iLoadType);
                List <VendorPortAgentDetails> list = new List <VendorPortAgentDetails>();

                if (Session["PortAgentVendorDetails"] != null)
                {
                    list = (List <VendorPortAgentDetails>)Session["PortAgentVendorDetails"];
                    if (list.Count > 0)
                    {
                        uoTextBoxCity.Text          = GlobalCode.Field2String(Session["PortAgentVendorCityFilter"]);
                        uoTextBoxVendorName.Text    = list[0].PortAgentName;
                        uoTextBoxVendorAddress.Text = list[0].Address;
                        uoTextBoxWebsite.Text       = list[0].Website;

                        uoTextBoxEmailTo.Text = list[0].EmailTo;
                        uoTextBoxEmailCc.Text = list[0].EmailCC;

                        vendorCountryLoad();
                        if (uoDropDownListCountry.Items.FindByValue(GlobalCode.Field2String(list[0].CountryID)) != null)
                        {
                            uoDropDownListCountry.SelectedValue = GlobalCode.Field2String(list[0].CountryID);
                        }
                        vendorCityLoad(0, uoDropDownListCountry.SelectedValue);
                        if (uoDropDownListCity.Items.FindByValue(GlobalCode.Field2String(list[0].CityID)) != null)
                        {
                            uoDropDownListCity.SelectedValue = GlobalCode.Field2String(list[0].CityID);
                        }
                        uoTextBoxContactNo.Text     = list[0].ContactNo;
                        uoTextBoxContactPerson.Text = list[0].ContactPerson;
                        uoTextBoxFaxNo.Text         = list[0].FaxNo;
                        uoTextBoxVendorID.Text      = list[0].VendorIMS_ID;
                        BindAirportList(0);
                        BindPortAgentAirportList(0);
                        BindVendorTypeList(0);
                        BindVehicleTypeList(0);
                    }
                }
                else
                {
                    uoTextBoxCity.Text          = "";
                    uoTextBoxVendorName.Text    = "";
                    uoTextBoxVendorAddress.Text = "";
                    uoTextBoxWebsite.Text       = "";

                    uoTextBoxEmailTo.Text = "";
                    uoTextBoxEmailCc.Text = "";

                    vendorCountryLoad();
                    vendorCityLoad(0, uoDropDownListCountry.SelectedValue);
                    uoTextBoxContactNo.Text     = "";
                    uoTextBoxContactPerson.Text = "";
                    uoTextBoxFaxNo.Text         = "";
                    uoTextBoxVendorID.Text      = "";

                    uoListViewAirport.DataSource = null;
                    uoListViewAirport.DataBind();
                    BindAirportList(1);

                    BindVendorTypeList(1);
                    BindVehicleTypeList(1);
                }
            }
            else
            {
                uoTextBoxCity.Text          = "";
                uoTextBoxVendorName.Text    = "";
                uoTextBoxVendorAddress.Text = "";
                uoTextBoxWebsite.Text       = "";

                uoTextBoxEmailTo.Text = "";
                uoTextBoxEmailCc.Text = "";

                vendorCountryLoad();
                vendorCityLoad(0, uoDropDownListCountry.SelectedValue);
                uoTextBoxContactNo.Text     = "";
                uoTextBoxContactPerson.Text = "";
                uoTextBoxFaxNo.Text         = "";
                uoTextBoxVendorID.Text      = "";

                uoListViewAirport.DataSource = null;
                uoListViewAirport.DataBind();
                BindAirportList(1);

                BindVendorTypeList(1);
                BindVehicleTypeList(1);
            }
        }