Esempio n. 1
0
        public ActionResult ViewMilesStoneTasks(int id)
        {
            TimeLine_Property objtimeline = new TimeLine_Property();


            objtimeline.ID = id;
            objProjectBll  = new Project_BLL(objtimeline);
            DataTable dt       = objProjectBll.GetAllTaskByIdMilesToneID();
            var       Tasklist = JsonConvert.SerializeObject(dt);

            ViewBag.Tasklist = Tasklist;
            return(View());
        }
Esempio n. 2
0
        public void GetMilestones()
        {
            Project_BLL objprojectbll = new Project_BLL();
            DataTable   dt            = objprojectbll.GetAllMilestone();
            List <TimeLine_Property> objTimeLine_PropertyList = new List <TimeLine_Property>();

            foreach (DataRow dr in dt.Rows)
            {
                TimeLine_Property objTimeLineProperty = new TimeLine_Property();
                objTimeLineProperty.ID           = Convert.ToInt32(dr["ID"].ToString());
                objTimeLineProperty.TimeLineName = dr["TimeLineName"].ToString();
                objTimeLineProperty.Project_ID   = Convert.ToInt32(dr["Project_Id"].ToString());
                objTimeLine_PropertyList.Add(objTimeLineProperty);
            }
            ViewBag.MileStoneItems = objTimeLine_PropertyList;
        }
Esempio n. 3
0
        public ActionResult ShowTimeLine(int id)
        {
            TimeLine_Property objtimeline = new TimeLine_Property();

            objtimeline.Project_Item = GetProjects();
            objtimeline.ID           = id;
            //objProjectProperty = new Project_Property();
            //objProjectBll = new Project_BLL(objProjectProperty);
            //DataTable projects = objProjectBll.SelectAll();
            objProjectBll = new Project_BLL(objtimeline);
            DataTable proTimeLine = objProjectBll.GetMilestoneById();

            objtimeline = objProjectBll.getTable(proTimeLine);

            return(View(objtimeline));
        }
Esempio n. 4
0
        public ActionResult AddTimeLine()
        {
            TimeLine_Property objtimeline = new TimeLine_Property();

            objtimeline.Project_Item = GetProjects();
            objProjectProperty       = new Project_Property();
            objProjectBll            = new Project_BLL(objProjectProperty);
            DataTable projects = objProjectBll.SelectAll();
            List <Project_Property> ProjectType_PropertylistItems = new List <Project_Property>();

            foreach (DataRow dr in projects.Rows)
            {
                Project_Property objProjectType_Property = new Project_Property();
                objProjectType_Property.Project_Name = dr["Project_Name"].ToString();
                objProjectType_Property.Project_Id   = Convert.ToInt32(dr["Project_Id"].ToString());
                ProjectType_PropertylistItems.Add(objProjectType_Property);
            }


            objtimeline.Project_Item = ProjectType_PropertylistItems;
            return(View(objtimeline));
        }
Esempio n. 5
0
 public Project_BLL(TimeLine_Property property)
 {
     objTimeline = property;
 }