Example #1
0
        private void DoBind()
        {
            Carrier carrier = null;

            List <StateMaster> states = State.GetAll();

            CollectionManager.FillCollection(ddlCountry, "CountryId", "CountryName", CountryMasterManager.GetAll());

            CollectionManager.FillCollection(ddlState, "StateId", "StateName", states);

            if (this.carrierID > 0)
            {
                tabContainer.Visible = true;


                carrier = CarrierManager.Get(carrierID);

                if (carrier != null)
                {
                    txtName.Text     = carrier.CarrierName;
                    txtAddress.Text  = carrier.AddressLine1;
                    txtAddress2.Text = carrier.AddressLine2;

                    if (carrier.CountryID != null)
                    {
                        ddlCountry.SelectedValue = carrier.CountryID.ToString();
                    }

                    if (carrier.StateID != null)
                    {
                        ddlState.SelectedValue = carrier.StateID.ToString();

                        bindStateCities(carrier.StateID ?? 0);
                    }

                    if (carrier.CityID != null)
                    {
                        ddlCity.SelectedValue = carrier.CityID.ToString();
                    }

                    txtZipCode.Text = carrier.ZipCode;

                    showLocations();

                    bindLocations();

                    bindInvoiceProfiles();

                    carrierContacts.bindData(carrierID);

                    carrierComments.bindData();

                    carrierDocuments.bindData(carrierID);

                    carrierTasks.bindData();
                }
            }
        }
        protected void DoBind()
        {
            List <StateMaster>   states   = State.GetAll();
            List <CountryMaster> contries = CountryMasterManager.GetAll();

            CollectionManager.FillCollection(ddlState, "StateId", "StateName", states);

            CollectionManager.FillCollection(ddlCountry, "CountryID", "CountryName", contries);

            bindLienholders();
        }
Example #3
0
        private void bindLocationCountry()
        {
            List <StateMaster> states = State.GetAll();

            CollectionManager.FillCollection(ddlLocationCountry, "CountryId", "CountryName", CountryMasterManager.GetAll());
        }