Ejemplo n.º 1
0
 public ActionResult GETTASK()
 {
     Task obj = new Task();
     TaskObjects TaskList1 = new TaskObjects ();
     var TaskList = obj.LsitTask();
     IList<TaskObjects> p = TaskList;
     ViewBag.List = new SelectList(p.AsEnumerable(), "TaskId", "TaskId");
     return View();
 }
Ejemplo n.º 2
0
 public ActionResult Updateselect(Int16 id)
 {
     Task obj = new Task();
     var Modellist = obj.LsitTask();
     var Editlist = Modellist.First(para => para.TaskId == id);
     id = Convert.ToInt16(Editlist.TaskId);
     ViewData["id"] = Editlist.TaskId;
     ViewData["project"] = Editlist.ProjectName;
     ViewData["module"] = Editlist.ModuleName;
     ViewData["screenName"] = Editlist.ScreenName;
     ViewData["task"] = Editlist.TaskName;
     ViewData["estimateHours"] = Editlist.EstimateHours;
     ViewData["priority"] = Editlist.Priority;
     ViewData["creator"] = Editlist.Creator;
     ViewData["startDate"] = Editlist.StartDate;
     ViewData["endDate"] = Editlist.EndDate;
     ViewData["assigned"] = Editlist.Assigned;
     ViewData["startTime"] = Editlist.StartTime;
     ViewData["endTime"] = Editlist.EndTime;
     ViewData["reviewer"] = Editlist.Reviewer;
     ViewData["status"] = Editlist.Status;
     ViewData["comments"] = Editlist.Comments;
     return View(Editlist);
     //return RedirectToAction("Index", "CRUD");
 }
Ejemplo n.º 3
0
        public ActionResult Products(JqGridRequest request, TaskObjects viewModel)
        {
            //Service1Client obj = new Service1Client();

            JqGridResponse response = new JqGridResponse();
            List<TaskObjects> listobj = new List<TaskObjects>();
            Task dal = new Task();
            var m = dal.LsitTask();
            //var m = obj.display();
            listobj = m.ToList();

            foreach (TaskObjects product in listobj)
            {
                response.Records.Add(new JqGridRecord(Convert.ToString(product.TaskId), new List<object>()
                {
                   product.TaskId,
                   product.ProjectName,
                   product.ModuleName,
                   product.ScreenName,

                   product.TaskName,
                   product.EstimateHours,
                   product.Priority,

                   product.Creator,
                   product.Reviewer,
                   product.Assigned,

                   product.StartDate,
                   product.EndDate,

                   product.StartTime,
                   product.EndTime,

                   product.Status,
                   product.Comments,

                }));
            }

            return new JqGridJsonResult() { Data = response };
        }