Ejemplo n.º 1
0
        private void FillPageData(Guid newGuid)
        {
            try
            {
                var result = _objMaster.PortMasterSeach(new MDMSVC.DC_PortMaster_RQ()
                {
                    Port_Id = newGuid, PageSize = 5
                });
                if (result != null)
                {
                    if (result.Count > 0)
                    {
                        BindCountry();
                        BindState(result[0].Country_Id);
                        BindCity(result[0].Country_Id);
                        //Fill all data
                        txtOAG_loc.Text       = Convert.ToString(result[0].OAG_loc);
                        txtOAG_multicity.Text = Convert.ToString(result[0].OAG_multicity);
                        txtoag_lon.Text       = Convert.ToString(result[0].Oag_lon);
                        txtoag_inactive.Text  = Convert.ToString(result[0].Oag_inactive);
                        txtMappingStatus.Text = Convert.ToString(result[0].MappingStatus);
                        txtoag_ctryname.Text  = Convert.ToString(result[0].Oag_ctryname);
                        txtoag_state.Text     = Convert.ToString(result[0].Oag_state);
                        txtoag_substate.Text  = Convert.ToString(result[0].Oag_substate);
                        txtoag_timediv.Text   = Convert.ToString(result[0].Oag_timediv);
                        txtoag_lat.Text       = Convert.ToString(result[0].Oag_lat);


                        txtOAG_type.Text     = Convert.ToString(result[0].OAG_type);
                        txtOAG_subtype.Text  = Convert.ToString(result[0].OAG_subtype);
                        txtoag_name.Text     = Convert.ToString(result[0].Oag_name);
                        txtoag_portname.Text = Convert.ToString(result[0].Oag_portname);
                        txtoag_ctry.Text     = Convert.ToString(result[0].Oag_ctry);
                        txtoag_subctry.Text  = Convert.ToString(result[0].Oag_subctry);

                        ddlCountryEdit.SelectedValue = Convert.ToString(result[0].Country_Id);
                        ddlCityEdit.SelectedValue    = Convert.ToString(result[0].City_Id);
                        ddlStateEdit.SelectedValue   = Convert.ToString(result[0].State_Id);
                        //  ddlStatus.SelectedValue = Convert.ToString(result[0].stat)
                    }
                }
            }
            catch (Exception)
            {
                throw;
            }
        }