示例#1
0
        public ActionResult Index(string masterEntity = null, string masterKey = null)
        {
            OrderCollectionModel orderCollectionModel = new OrderCollectionModel(ActivityOperations, "Index", null, masterEntity, masterKey);

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

            return(ZViewOperationResult(orderCollectionModel.OperationResult));
        }
示例#2
0
        public ActionResult Search(string masterControllerAction = null, string masterEntity = null, string masterKey = null)
        {
            OrderCollectionModel orderCollectionModel = new OrderCollectionModel(ActivityOperations, "Search", masterControllerAction, masterEntity, masterKey);

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

            return(JsonResultOperationResult(orderCollectionModel.OperationResult));
        }
        public ActionResult Index(string masterCustomerId = null, int?masterEmployeeId = null, int?masterShipVia = null)
        {
            ClearUrlDictionary();

            OrderCollectionModel orderCollectionModel = new OrderCollectionModel()
            {
                IsSecurityOperations = this.IsSecurityOperations,
                ControllerAction     = "Index",
                MasterCustomerId     = masterCustomerId, MasterEmployeeId = masterEmployeeId, MasterShipVia = masterShipVia
            };

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

            return(View(orderCollectionModel));
        }