Example #1
0
        protected void bindData()
        {
            var carriers = CarrierManager.GetCarriers(clientID).ToList();

            //LeadPolicyCoverage[] coverages = new LeadPolicyCoverage[5];

            CollectionManager.FillCollection(ddlCarrier, "CarrierID", "CarrierName", carriers);

            var states = State.GetAll();

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

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

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

            // coverage
            //gvCoverages.DataSource = coverages;
            //gvCoverages.DataBind();

            // property type
            CollectionManager.FillCollection(ddlTypeOfProperty, "TypeOfPropertyId", "TypeOfProperty", TypeOfPropertyManager.GetAll());

            // type of damage
            Fillchk(chkTypeOfDamage, "TypeOfDamageId", "TypeOfDamage", TypeofDamageManager.GetAll());
        }
        private void DoBind()
        {
            List <TypeOfDamageMaster> lst = TypeofDamageManager.GetAll(clientID);

            if (lst.Count > 0)
            {
                dvData.Visible    = true;
                PagerRow.Visible  = true;
                lvData.DataSource = lst;
                lvData.DataBind();
            }
            else
            {
                dvData.Visible   = false;
                PagerRow.Visible = false;
            }
        }