public ActionResult _EditOperation(int? operationId)
        {
            ApplicationManagementOperation operation = operationService.Get(operationId ?? 0);

            OperationEditModel operationEditModel = new OperationEditModel();
            if (operation != null)
            {
                operationEditModel = operation.AsOperationEditModel();
                if (operation.ApplicationId != 0)
                {
                    ViewData["applicationName"] = appService.Get(operation.ApplicationId).Config.ApplicationName;
                }
            }
            ViewData["operationType"] = operation.OperationType;
            return View(operationEditModel);
        }
        public ActionResult _EditOperation(OperationEditModel operationEditModel)
        {
            ApplicationManagementOperation operation = operationEditModel.AsApplicationManagementOperation();

            operationService.Update(operation);
            return Json(new StatusMessageData(StatusMessageType.Success, "更新成功"));
        }
        public ActionResult _CreateOperation(OperationEditModel operationEditModel)
        {
            string presentAreaKey = Request.QueryString.Get<string>("presentAreaKey", string.Empty);
            ManagementOperationType? operationType = Request.QueryString.Get<ManagementOperationType?>("operationType", null);
            ApplicationManagementOperation operation = operationEditModel.AsApplicationManagementOperation();
            operation.PresentAreaKey = presentAreaKey;
            operation.OperationType = (ManagementOperationType)operationType;

            operationService.Create(operation);

            return Json(new StatusMessageData(StatusMessageType.Success, "创建成功"));
        }