Ejemplo n.º 1
0
        public ActionResult Search(string masterControllerAction = null, string masterEntity = null, string masterKey = null)
        {
            OrderDetailCollectionModel orderDetailCollectionModel = new OrderDetailCollectionModel(ActivityOperations, "Search", masterControllerAction, masterEntity, masterKey);

            try
            {
                if (IsOperation(orderDetailCollectionModel.OperationResult))
                {
                    return(ZPartialView(orderDetailCollectionModel));
                }
            }
            catch (Exception exception)
            {
                orderDetailCollectionModel.OperationResult.ParseException(exception);
            }

            return(JsonResultOperationResult(orderDetailCollectionModel.OperationResult));
        }
Ejemplo n.º 2
0
        public ActionResult Index(string masterEntity = null, string masterKey = null)
        {
            OrderDetailCollectionModel orderDetailCollectionModel = new OrderDetailCollectionModel(ActivityOperations, "Index", null, masterEntity, masterKey);

            try
            {
                if (IsIndex(orderDetailCollectionModel.OperationResult))
                {
                    return(ZView(orderDetailCollectionModel));
                }
            }
            catch (Exception exception)
            {
                orderDetailCollectionModel.OperationResult.ParseException(exception);
            }

            return(ZViewOperationResult(orderDetailCollectionModel.OperationResult));
        }
        public ActionResult Index(int?masterOrderId = null, int?masterProductId = null)
        {
            ClearUrlDictionary();

            OrderDetailCollectionModel orderDetailCollectionModel = new OrderDetailCollectionModel()
            {
                IsSecurityOperations = this.IsSecurityOperations,
                ControllerAction     = "Index",
                MasterOrderId        = masterOrderId, MasterProductId = masterProductId
            };

            try
            {
                IsSearch(orderDetailCollectionModel.OperationResult);
            }
            catch (Exception exception)
            {
                orderDetailCollectionModel.OperationResult.ParseException(exception);
            }

            return(View(orderDetailCollectionModel));
        }
        public ActionResult Search(string masterUrl = null, string masterControllerAction = null, int?masterOrderId = null, int?masterProductId = null)
        {
            WriteUrlDictionary(masterUrl);

            OrderDetailCollectionModel orderDetailCollectionModel = new OrderDetailCollectionModel()
            {
                IsSecurityOperations   = this.IsSecurityOperations,
                ControllerAction       = "Search",
                MasterControllerAction = masterControllerAction,
                MasterOrderId          = masterOrderId, MasterProductId = masterProductId
            };

            try
            {
                IsSearch(orderDetailCollectionModel.OperationResult);
            }
            catch (Exception exception)
            {
                orderDetailCollectionModel.OperationResult.ParseException(exception);
            }

            return(PartialView(orderDetailCollectionModel));
        }