Exemplo n.º 1
0
        /// <summary>
        /// /DropDown/companyCategoryTypes
        ///
        ///   @Html.Action("companyCategoryTypes", "DropDown", new { id = Model.companyCategoryTypeId })
        /// </summary>
        public ActionResult companyCategoryTypes(int?id = null)
        {
            var vo = new DropDownVm();

            vo.propertyName   = "companyCategoryTypeId";
            vo.dataValueField = "companyCategoryTypeId";
            vo.dataTextField  = "name";
            vo.selectedValue  = id;
            vo.items          = companyCategoryTypeManager.getAll(true); // CompanyCategoryTypeVo

            return(View("_DropDownList", vo));
        }
Exemplo n.º 2
0
        /// <summary>
        /// /DropDown/businessCategoryTypes
        /// 
        ///   @Html.Action("propertyTypes", "DropDown", new { id = Model.businessCategoryTypeId })
        /// </summary>
        public ActionResult businessCategoryTypes(int? id = null)
        {
            var vo = new DropDownVm();
            vo.propertyName = "businessCategoryTypeId";
            vo.dataValueField = "businessCategoryTypeId";
            vo.dataTextField = "name";
            vo.selectedValue = id;
            vo.optionLabel = "All Categoies";
            vo.items = businessCategoryTypeManager.getAll(true); 

            return View("_DropDownList", vo);
        }
Exemplo n.º 3
0
        /// <summary>
        /// /DropDown/properties
        /// 
        ///   @Html.Action("properties", "DropDown", new { id = Model.companyId })
        /// </summary>
        public ActionResult properties(int? id = null)
        {
            var vo = new DropDownVm();
            vo.propertyName = "propertyId";
            vo.dataValueField = "propertyId";
            vo.dataTextField = "companyName";
            vo.selectedValue = id;
            vo.optionLabel = "Properties";
            vo.items = propertyManager.getAll(true);

            return View("_DropDown", vo);
        }
Exemplo n.º 4
0
        /// <summary>
        /// /DropDown/propertyListingTypes
        /// 
        ///   @Html.Action("propertyListingTypes", "DropDown", new { id = Model.propertyListingTypeId })
        /// </summary>
        public ActionResult propertyListingTypes(int? id = null)
        {
            var vo = new DropDownVm();
            vo.propertyName = "propertyListingTypeId";
            vo.dataValueField = "propertyListingTypeId";
            vo.dataTextField = "name";
            vo.selectedValue = id;
            vo.optionLabel = "Select Type";
            vo.items = propertyListingTypeManager.getAll(true);

            return View("_DropDown", vo);
        }
Exemplo n.º 5
0
        /// <summary>
        ///  /DropDown/companyCategoryTypes2
        ///
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ActionResult companyCategoryTypes2(int?id = null)
        {
            var vo = new DropDownVm();

            vo.propertyName   = "companyCategoryTypeId";
            vo.dataValueField = "companyCategoryTypeId";
            vo.dataTextField  = "name";
            vo.selectedValue  = id;
            vo.optionLabel    = "All Providers";
            vo.items          = companyCategoryTypeManager.getCompanyCategories(true); // CompanyCategoryClass

            return(View("_DropDownList", vo));
        }
Exemplo n.º 6
0
        public ActionResult CompanyCategoriesDropDown(int?companyCategoryTypeId = null)
        {
            var vo = new DropDownVm();

            vo.propertyName   = "companyCategoryTypeId";
            vo.dataValueField = "companyCategoryTypeId";
            vo.dataTextField  = "name";
            vo.selectedValue  = companyCategoryTypeId;
            vo.optionLabel    = "NONE";
            vo.items          = companyCategoryTypeManager.getCompanyCategories(true); // CompanyCategoryClass

            return(View("_CompanyCategoriesDropDown", vo));
        }