Exemplo n.º 1
0
        protected void populateEntityDetails()
        {
            MainBusinessEntity mBEObj = BackEndObjects.MainBusinessEntity.
                                        getMainBusinessEntitybyIdwithLessDetailsDB(Session[SessionFactory.MAIN_BUSINESS_ENTITY_ID_STRING].ToString());

            loadProdServList(MainBusinessEntity.getProductDetailsforMainEntitybyIdDB(mBEObj.getEntityId()));

            TextBox_Name.Text       = mBEObj.getEntityName();
            TextBox_Contact.Text    = mBEObj.getPhNo();
            TextBox_Email.Text      = mBEObj.getEmailId();
            TextBox_Owner_Name.Text = mBEObj.getOwnerName();
            TextBox_Site.Text       = mBEObj.getWebSite();

            Dictionary <String, businessDescription> busDescDict = BackEndObjects.businessDescription.getAllBusinessDescriptionDB();

            foreach (KeyValuePair <String, businessDescription> kvp in busDescDict)
            {
                ListItem lt = new ListItem();
                lt.Text  = ((businessDescription)kvp.Value).getDescName();
                lt.Value = ((businessDescription)kvp.Value).getDescId();

                DropDownList_Business_Desc.Items.Add(lt);
                if (((businessDescription)kvp.Value).getDescId().Equals(mBEObj.getDesc()))
                {
                    DropDownList_Business_Desc.SelectedValue = lt.Value;
                }
            }
        }