//
        // GET: /FMM/RouteStepAttribute/Detail
        public async Task <ActionResult> Detail(string routeName, string routeStepName, string attributeName)
        {
            using (RouteStepAttributeServiceClient client = new RouteStepAttributeServiceClient())
            {
                MethodReturnResult <RouteStepAttribute> result = await client.GetAsync(new RouteStepAttributeKey()
                {
                    RouteName     = routeName,
                    RouteStepName = routeStepName,
                    AttributeName = attributeName
                });

                if (result.Code == 0)
                {
                    RouteStepAttributeViewModel viewModel = new RouteStepAttributeViewModel()
                    {
                        RouteName     = result.Data.Key.RouteName,
                        RouteStepName = result.Data.Key.RouteStepName,
                        AttributeName = result.Data.Key.AttributeName,
                        Value         = result.Data.Value,
                        Editor        = result.Data.Editor,
                        EditTime      = result.Data.EditTime
                    };
                    return(PartialView("_InfoPartial", viewModel));
                }
                else
                {
                    ModelState.AddModelError("", result.Message);
                }
            }
            return(PartialView("_InfoPartial"));
        }
        public async Task <ActionResult> SaveModify(RouteStepAttributeViewModel model)
        {
            using (RouteStepAttributeServiceClient client = new RouteStepAttributeServiceClient())
            {
                MethodReturnResult <RouteStepAttribute> result = await client.GetAsync(new RouteStepAttributeKey()
                {
                    RouteName     = model.RouteName,
                    RouteStepName = model.RouteStepName,
                    AttributeName = model.AttributeName
                });

                if (result.Code == 0)
                {
                    result.Data.Value    = model.Value;
                    result.Data.Editor   = User.Identity.Name;
                    result.Data.EditTime = DateTime.Now;
                    MethodReturnResult rst = await client.ModifyAsync(result.Data);

                    if (rst.Code == 0)
                    {
                        rst.Message = string.Format(FMMResources.StringResource.RouteStepAttribute_SaveModify_Success
                                                    , result.Data.Key);
                    }
                    return(Json(rst));
                }
                return(Json(result));
            }
        }