Beispiel #1
0
        public ActionResult Status()
        {
            MxUser mxUser = GetMxUser();

            if (mxUser.IsInRole("CUSTOMER_View"))
            {
                //var um = new UserModel(Membership.GetUser().ProviderUserKey.ToString());
                //string companyName = BLL.Customer.CustomerName(um);
                var model = new OrderStatus(GetMxUser());
                return View(model);
            }
            else { return RedirectToAction("NoAccess", "Account", new { returnUrl = "Orders" }); }
        }
Beispiel #2
0
        public ContentResult DueDatesShipments(string orderId)
        {
            MxUser mxUser = GetMxUser();

            if (mxUser.IsInRole("CUSTOMER_View"))
            {
                var model = new OrderStatus(mxUser);
                return Content(model.GetDueDatesShipments(orderId));
            }
            else
            {
                return Content(UnauthorizedContent());
            }
        }
Beispiel #3
0
        public ContentResult List(string status, string companyId)
        {
            MxUser mxUser = GetMxUser();

            if (mxUser.IsInRole("CUSTOMER_View"))
            {
                //var um = new UserModel(Membership.GetUser().ProviderUserKey.ToString());
                var model = new OrderStatus(mxUser);
                return Content(model.GetOrders(status, companyId));
            }
            else
            {
                return Content(UnauthorizedContent());
            }
        }