コード例 #1
0
        public string create(string project, string module, string screenName, string task, string estimateHours, string priority, string creator, DateTime startDate, DateTime endDate, string assigned, string startTime, string endTime, string reviewer, string status, string comments)
        {
            TaskObjects c = new TaskObjects();
            c.ProjectName = project;
            c.ModuleName = module;
            c.ScreenName = screenName;

            c.TaskName = task;
            c.EstimateHours = estimateHours;
            c.Priority = priority;

            c.Creator = creator;
            c.StartDate = startDate;
            c.EndDate = endDate;

            c.Assigned = assigned;
            c.StartTime = startTime;
            c.EndTime = endTime;

            c.Reviewer = reviewer;
            c.Status = status;
            c.Comments = comments;

            Task c1 = new Task();

            return c1.create(c);
        }
コード例 #2
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();
 }
コード例 #3
0
        public bool deleteone(int id)
        {
            TaskObjects c = new TaskObjects();
            c.TaskId = id;

            Task c1 = new Task();

            return c1.delete(c);
        }
コード例 #4
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 };
        }