Пример #1
0
        public ActionResult TaskComplexityAndPriority()
        {
            BusinessLayerObjects     obj           = new BusinessLayerObjects();
            IEnumerable <TaskStatus> objTaskStatus = obj.GetTaskStatus("TaskComplexityAndPriority");

            string chartImage = Server.MapPath("/Content/images/TaskComplexityAndPriority.jpeg");

            ViewBag.chartImage = "/Content/images/TaskComplexityAndPriority.jpeg";


            ArrayList xValue = new ArrayList();
            ArrayList yValue = new ArrayList();

            //var result = from c in objEstimates select c;
            objTaskStatus.ToList().ForEach(rs => xValue.Add(rs.Status));
            objTaskStatus.ToList().ForEach(rs => yValue.Add(rs.NoOfRequest));

            new Chart(width: 1100, height: 500, theme: ChartTheme.Yellow)
            .AddTitle("Type of Request chart").AddSeries("Default", chartType: "column", xValue: xValue,
                                                         yValues: yValue)
            .SetYAxis("No of Requests").Save(chartImage, "jpeg");


            //.Write("bmp");

            return(View());
        }
Пример #2
0
        public ActionResult ListofOpenRfc()
        {
            BusinessLayerObjects        obj     = new BusinessLayerObjects();
            IEnumerable <ListofOpenRfc> objRfcs = obj.GetListofOpenRfc();

            return(View(objRfcs));
        }
Пример #3
0
        public ActionResult Index(long MantisId)
        {
            BusinessLayerObjects   obj                  = new BusinessLayerObjects();
            IEnumerable <Estimate> objEstimates         = obj.GetEstimate(MantisId);
            IssueDetailMaster      objIssueDetailMaster = obj.GetRequestTitle(MantisId);

            ViewBag.MantisId          = MantisId;
            ViewBag.IssueDetailMaster = objIssueDetailMaster;

            string chartImage = Server.MapPath("/Content/images/" + MantisId + ".jpeg");

            ViewBag.chartImage = "/Content/images/" + MantisId + ".jpeg";

            /*
             * ArrayList xValue = new ArrayList();
             * ArrayList yValue = new ArrayList();
             *
             * //var result = from c in objEstimates select c;
             * objEstimates.ToList().ForEach(rs => xValue.Add(rs.EstimateDesc));
             * objEstimates.ToList().ForEach(rs => yValue.Add(rs.Hours));
             *
             * new Chart(width: 600, height: 400, theme: ChartTheme.Blue)
             *  .AddTitle("Estimate to complete").AddSeries("Default", chartType: "Bar", xValue: xValue,
             *      yValues: yValue)
             *  .SetYAxis("Hours").Save(chartImage, "jpeg");
             */

            //.Write("bmp");

            return(View(objEstimates));
        }
Пример #4
0
        public ActionResult Login(User user)
        {
            /*if (!ModelState.IsValid)
             * {
             *  return View(user);
             * }*/

            BusinessLayerObjects obj = new BusinessLayerObjects();
            User objReturnedUser     = obj.GetUserDetail(user);

            if (objReturnedUser != null)
            {
                Session["UserId"]       = objReturnedUser.UserId;
                Session["FirstName"]    = objReturnedUser.FirstName;
                Session["LastName"]     = objReturnedUser.LastName;
                Session["EmailId"]      = objReturnedUser.EmailId;
                Session["UserType"]     = objReturnedUser.UserType;
                Session["Active"]       = objReturnedUser.Active;
                Session["ValidUser"]    = true;
                Session["UserTypeDesc"] = objReturnedUser.UserTypeDesc;

                return(RedirectToAction("Index", "Ticket"));
            }
            else
            {
                ModelState.AddModelError("", "Invalid login attempt.");
                return(View(user));
            }
        }
Пример #5
0
        public ActionResult Index()
        {
            BusinessLayerObjects obj = new BusinessLayerObjects();
            var users = obj.GetUserList();

            return(View(users));
        }
Пример #6
0
        public ActionResult UserProfile(string userId)
        {
            BusinessLayerObjects obj = new BusinessLayerObjects();
            User objUser             = obj.GetUserDetail(userId);

            return(View(objUser));
        }
Пример #7
0
        // GET: System
        public ActionResult Index()
        {
            BusinessLayerObjects obj = new BusinessLayerObjects();
            var approverList         = obj.GetApproverList();

            return(View(approverList));
        }
Пример #8
0
        public ActionResult Send(long mantisId)
        {
            BusinessLayerObjects obj = new BusinessLayerObjects();
            //IEnumerable<EstimateForRequest> objEstReq = obj.GetEstimateForRequest(mantisId);
            List <EstimateForRequest> objEstReq = obj.GetEstimateForRequest(mantisId);

            return(View(objEstReq));
        }
Пример #9
0
        public ActionResult Create(IssueDetail id)
        {
            BusinessLayerObjects obj = new BusinessLayerObjects();

            id.AssingedBy = Session["EmailId"].ToString();

            Debug.Print(id.AssingedToList);

            Int64 MantisId = obj.SaveIssueDetail(id);


            /*var Users = obj.GetUserList();
             * ViewBag.Users = Users;*/

            return(RedirectToAction("Details", new { MantisId = MantisId }));
        }
Пример #10
0
        public ActionResult Create(long MantisID)
        {
            //if (Session["EmailId"] == null)
            //{
            //    return RedirectToAction("Index", "User");
            //}

            IssueDetail id = new IssueDetail();

            //instantiate View model class
            BusinessLayerObjects obj = new BusinessLayerObjects();

            id = obj.CreateNewStep(MantisID);

            //Get list of users except current user
            var Users = obj.GetUserList().Where(m => m.EmailId != Session["EmailId"].ToString()).ToList();

            ViewBag.Users = Users;

            IEnumerable <ConfigSetting> objConfigList = obj.GetConfigList("Status");
            var typeOfWork = objConfigList.Where(m => m.SettingName == "TypeOfWork").ToList();

            ViewBag.typeOfWork = typeOfWork;

            var priority = objConfigList.Where(m => m.SettingName == "Priority").ToList();

            ViewBag.priority = priority;

            var taskStatus = objConfigList.Where(m => m.SettingName == "TaskStatus").ToList();

            ViewBag.taskStatus = taskStatus;

            var taskSubStatus = objConfigList.Where(m => m.SettingName == "TaskSubStatus").ToList();

            ViewBag.taskSubStatus = taskSubStatus;

            var taskComplexity = objConfigList.Where(m => m.SettingName == "TaskComplexity").ToList();

            ViewBag.taskComplexity = taskComplexity;

            return(View(id));
        }
Пример #11
0
        public ActionResult ViewStep(long MantisId, byte SLNO)
        {
            BusinessLayerObjects obj = new BusinessLayerObjects();

            return(View(obj.GetOneStep(MantisId, SLNO)));
        }
Пример #12
0
        public ActionResult Details(long MantisId)
        {
            BusinessLayerObjects obj = new BusinessLayerObjects();

            return(View(obj.GetIssueDetails(MantisId)));
        }
Пример #13
0
        public ActionResult Index()
        {
            BusinessLayerObjects obj = new BusinessLayerObjects();

            return(View(obj.GetMasterIssueDetails()));
        }