Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (!string.IsNullOrEmpty(Request.QueryString["Id"]))
                {
                    PriceListId = Convert.ToInt32(Request.QueryString["Id"]);
                }

                CategoryTreeView1.PriceListID = PriceListId;
                CategoryTreeView1.DataBind();
            }
        }
Example #2
0
        /// <summary>
        /// Binds the project summary.
        /// </summary>
        void BindProjectSummary()
        {
            lnkRSSIssuesByCategory.NavigateUrl  = string.Format("~/Feed.aspx?pid={0}&channel=2", ProjectId);
            lnkRSSIssuesByAssignee.NavigateUrl  = string.Format("~/Feed.aspx?pid={0}&channel=6", ProjectId);
            lnkRSSIssuesByStatus.NavigateUrl    = string.Format("~/Feed.aspx?pid={0}&channel=3", ProjectId);
            lnkRSSIssuesByMilestone.NavigateUrl = string.Format("~/Feed.aspx?pid={0}&channel=1", ProjectId);
            lnkRSSIssuesByPriority.NavigateUrl  = string.Format("~/Feed.aspx?pid={0}&channel=4", ProjectId);
            lnkRSSIssuesByType.NavigateUrl      = string.Format("~/Feed.aspx?pid={0}&channel=5", ProjectId);

            //Milestone
            var lsVersion = IssueManager.GetMilestoneCountByProjectId(ProjectId);

            //Status
            var lsStatus = IssueManager.GetStatusCountByProjectId(ProjectId);

            //Priority
            var lsPriority = IssueManager.GetPriorityCountByProjectId(ProjectId);

            //User
            var lsUser = IssueManager.GetUserCountByProjectId(ProjectId);

            //Type
            var lsType = IssueManager.GetTypeCountByProjectId(ProjectId);

            CategoryTreeView1.ProjectId = ProjectId;
            CategoryTreeView1.BindData();

            rptMilestonesOpenIssues.DataSource = lsVersion;
            rptIssueStatus.DataSource          = lsStatus;
            rptPriorityOpenIssues.DataSource   = lsPriority;
            rptAssigneeOpenIssues.DataSource   = lsUser;
            rptTypeOpenIssues.DataSource       = lsType;

            rptMilestonesOpenIssues.DataBind();
            rptIssueStatus.DataBind();
            rptPriorityOpenIssues.DataBind();
            rptAssigneeOpenIssues.DataBind();

            rptTypeOpenIssues.DataBind();

            var p = ProjectManager.GetById(ProjectId);

            litProject.Text     = p.Name;
            litProjectCode.Text = p.Code;
        }