Exemplo n.º 1
0
        public ActionResult GetStatus(string id)
        {
            JavaScriptSerializer    serializer       = new JavaScriptSerializer();
            GetMyRequestBS          getMyRequestObj  = new GetMyRequestBS();
            List <RequestStatusDTO> requestStatusDTO = getMyRequestObj.GetStatus(id);

            ViewBag.RequestStatusList = serializer.Serialize(requestStatusDTO);

            return(View());
        }
Exemplo n.º 2
0
        public ActionResult UpdateRequest(UpdateRequestDetailsVM requestDetailsVM)
        {
            GetMyRequestBS getMyRequestObj = new GetMyRequestBS();
            UpdateUserRequestDetailsDTO UpdateRequestDetailsDTO = new UpdateUserRequestDetailsDTO
            {
                TaskId    = requestDetailsVM.TaskId,
                RequestNo = requestDetailsVM.RequestNo,
                UserName  = requestDetailsVM.UserName
            };
            string status = getMyRequestObj.UpdateRequest(UpdateRequestDetailsDTO);

            return(Json(status, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 3
0
        public ActionResult Index()
        {
            JavaScriptSerializer serializer = new JavaScriptSerializer();
            string      logonUserName       = string.Empty;
            string      logonUserId         = string.Empty;
            UserDetails userDetailsObj      = new UserDetails();

            logonUserId    = User.Identity.Name.ToString();
            userDetailsObj = LDAPinfoCollect.GetUserDetails(logonUserId);

            GetMyRequestBS getMyRequestObj = new GetMyRequestBS();

            var myRequestDetailsDTO = getMyRequestObj.GetAllRequestBS(Convert.ToInt32(userDetailsObj.UserWWID));

            ViewBag.MyRequestList = serializer.Serialize(myRequestDetailsDTO);

            return(View());
        }