Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var catId = Request.QueryString["id"].ToString();

            System.Diagnostics.Debug.Write("id test:" + catId);
            Guid id      = new Guid(catId);
            var  taskObj = new TaskBusinessObjects();

            _task = taskObj.GetTaskByCategoryId(id);
            foreach (var task in _task)
            {
                Panel taskPanel = new Panel();
                //make it skill
                //categoryTasks.Controls.Add(taskPanel);
                Label taskDescription = new Label();
                taskDescription.Text = task.description;
                taskPanel.Controls.Add(taskDescription);
                Panel owner     = new Panel();
                Label ownerName = new Label();
                ownerName.Text = task.owner;
                owner.Controls.Add(ownerName);
                taskPanel.Controls.Add(owner);
                Panel deadline = new Panel();
                Label DeadLine = new Label();
                DeadLine.Text = Convert.ToString(task.deadline);
                deadline.Controls.Add(DeadLine);
                taskPanel.Controls.Add(deadline);
                Image taskImage = new Image();

                getUsersTask(task.taskId, taskPanel);
            }

            var userTaskObj = new UsersTaskBusinessObjects();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            var catId = Request.QueryString["id"].ToString();

            System.Diagnostics.Debug.Write("id test:" + catId);
            Guid id      = new Guid(catId);
            var  taskObj = new TaskBusinessObjects();

            _task = taskObj.GetTaskByCategoryId(id);
            foreach (var task in _task)
            {
                Panel taskPanel = new Panel();
                categoryTasks.Controls.Add(taskPanel);
                Label taskDescription = new Label();
                taskDescription.Text = task.description + ", " + task.owner + ", " + task.doer + ", " + task.deadline;
                taskPanel.Controls.Add(taskDescription);
                Image taskImage = new Image();

                getUsersTask(task.taskId, taskPanel);
            }

            var userTaskObj = new UsersTaskBusinessObjects();
        }