public ActionResult ServiceItem(string itemKey, EnterpriseServiceEntity entity)
        {
            bool isSuccessful = false;
            string displayMessage = string.Empty;
            string returnUrl = RequestHelper.GetValue("returnUrl");
            if (string.IsNullOrWhiteSpace(returnUrl))
            {
                returnUrl = Url.Action("ServiceList");
            }

            returnUrl = returnUrl.Replace("&", "&");

            EnterpriseServiceEntity targetEntity = null;
            if (GuidHelper.IsInvalidOrEmpty(itemKey))
            {
                targetEntity = new EnterpriseServiceEntity();
                SetTargetServiceEntityValue(entity, ref targetEntity);
                targetEntity.EnterpriseServiceCreateDate = DateTime.Now;
                targetEntity.EnterpriseServiceCreateUserKey = BusinessUserBLL.CurrentUser.UserGuid.ToString();
                isSuccessful = EnterpriseServiceBLL.Instance.Create(targetEntity);
            }
            else
            {
                targetEntity = EnterpriseServiceBLL.Instance.Get(itemKey);
                SetTargetServiceEntityValue(entity, ref targetEntity);

                isSuccessful = EnterpriseServiceBLL.Instance.Update(targetEntity);
            }

            if (isSuccessful == true)
            {
                displayMessage = "数据保存成功";
            }
            else
            {
                displayMessage = "数据保存失败";
            }

            return Redirect(returnUrl);
            //return Json(new LogicStatusInfo(isSuccessful, displayMessage));
        }
        /// <summary>
        /// 通过一个实体给另外一个实体赋值
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="targetEntity"></param>
        private static void SetTargetServiceEntityValue(EnterpriseServiceEntity originalEntity, ref EnterpriseServiceEntity targetEntity)
        {
            targetEntity.EnterpriseServiceStatus = originalEntity.EnterpriseServiceStatus;
            targetEntity.EnterpriseServiceType = originalEntity.EnterpriseServiceType;
            targetEntity.EnterpriseInfo = originalEntity.EnterpriseInfo;
            targetEntity.EnterpriseGuid = originalEntity.EnterpriseGuid;
            targetEntity.EnterpriseServiceContactPerson = originalEntity.EnterpriseServiceContactPerson;
            targetEntity.EnterpriseServiceContactTelephone = originalEntity.EnterpriseServiceContactTelephone;

            targetEntity.FinanceUserName = RequestHelper.GetValue("FinanceUser");
            targetEntity.FinanceUserGuid = RequestHelper.GetValue<Guid>("FinanceUser_Value");
            targetEntity.ProviderUserName = RequestHelper.GetValue("ProviderUser");
            targetEntity.ProviderUserGuid = RequestHelper.GetValue<Guid>("ProviderUser_Value");
            targetEntity.RecommendUserName = RequestHelper.GetValue("RecommendUser");
            targetEntity.RecommendUserGuid = RequestHelper.GetValue<Guid>("RecommendUser_Value");
            targetEntity.ServiceUserName = RequestHelper.GetValue("ServiceUser");
            targetEntity.ServiceUserGuid = RequestHelper.GetValue<Guid>("ServiceUser_Value");

            targetEntity.BusinessUserName = RequestHelper.GetValue("BusinessUser");
            targetEntity.BusinessUserGuid = RequestHelper.GetValue<Guid>("BusinessUser_Value");
            targetEntity.SettleUserName = RequestHelper.GetValue("SettleUser");
            targetEntity.SettleUserGuid = RequestHelper.GetValue<Guid>("SettleUser_Value");
        }