Example #1
0
        private void getSkill(Panel categoryPnl, Guid guid)
        {
            var taskBussinessObj = new BusinessLayer.SkillBusinessObjects();

            _skills = taskBussinessObj.GetSkillByCategoryId(guid);
            count   = _skills.Count();
            foreach (var skill in _skills)
            {
                Panel SkillContentPanel = new Panel();
                SkillContentPanel.CssClass = "tile-content bg-color-green";
                categoryPnl.Controls.Add(SkillContentPanel);
                SkillContentPanel.ID = "" + count;

                //string taskCategoryIdString = "" + (Guid)task.categoryId;
                //Literal descTask = new Literal();
                //descTask.Text = "<p class=\"fg-color-white\">" + task.description + "</p>";
                //TaskContentPanel.Controls.Add(descTask);
                skillDescription = "<p class=\"fg-color-white\">" + skill.description + "</p>";
                getUserInfo(SkillContentPanel, (Guid)skill.userId);

                System.Diagnostics.Debug.Write("\nSkill Description" + skill.description + "\n");
            }
        }
Example #2
0
        private void getCategory(string parentCategory, Panel parPnl)
        {
            var skillBussinessObj = new BusinessLayer.SkillBusinessObjects();

            foreach (var Category in _category)
            {
                categorySkill = skillBussinessObj.GetSkillByCategoryId(Category.categoryId);
                //foreach (var catTask in categoryTask)
                //{
                if ((parentCategory == Category.parent) && categorySkill != null)
                {
                    Panel categoryPnl = new Panel();

                    categoryPnl.ID = "" + (Guid)Category.categoryId;

                    categoryPnl.CssClass = "tile double bg-color-ubuoy border-color-LightGrey";
                    categoryPnl.Attributes.Add("data-param-period", "3000");
                    categoryPnl.Attributes.Add("data-param-direction", "up");
                    categoryPnl.Attributes.Add("data-role", "tile-slider");
                    System.Diagnostics.Debug.Write("category" + Category.Name);

                    HyperLink skillLink = new HyperLink();
                    //~/Demo.aspx?+_projectOrganization.orginizationId + ProjectId
                    skillLink.NavigateUrl = "~/ubuoySkillDetail.aspx?id=" + Category.categoryId;

                    parPnl.Controls.Add(skillLink);


                    parPnl.Controls.Add(categoryPnl);
                    skillLink.Controls.Add(categoryPnl);



                    //Panel TaskContentPanel = new Panel();
                    //TaskContentPanel.CssClass = "tile-content bg-color-green";
                    //categoryPnl.Controls.Add(TaskContentPanel);
                    //
                    // getTask(TaskContentPanel, Category.categoryId);

                    getSkill(categoryPnl, Category.categoryId);

                    Panel brandPanel = new Panel();
                    brandPanel.CssClass = "brand bg-color-darken fg-color-white";
                    categoryPnl.Controls.Add(brandPanel);

                    Label categoryNameLabel = new Label();
                    categoryNameLabel.CssClass = "text fg-color-white";
                    categoryNameLabel.Text     = Category.Name;
                    brandPanel.Controls.Add(categoryNameLabel);

                    Panel skillCount = new Panel();
                    skillCount.CssClass = "badge fg-color-white";
                    Literal taskCountText = new Literal();
                    taskCountText.Text = "" + count;
                    brandPanel.Controls.Add(skillCount);
                    skillCount.Controls.Add(taskCountText);

                    //}
                }
            }
        }