Пример #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" }); }
        }
Пример #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());
            }
        }
Пример #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());
            }
        }