public ContentResult DetailTempSave(string detail)
 {
     try
     {
         int rtn = 0;;
         SYSCompanyProfile Profile = SYSCompanyProfile.GetProfile();
         if (Profile == null)
         {
             Profile     = new SYSCompanyProfile();
             Profile.Tmp = detail;
             rtn         = Profile.InsertAndReturnIdentity();
         }
         else
         {
             rtn = SYSCompanyProfile.SaveTmp(detail);
         }
         if (rtn > 0)
         {
             return(Content("ok"));
         }
         return(Content("网络异常"));
     }
     catch (Exception ex)
     {
         Log.Instance.Write(ex.ToString(), "SYSCompanyProfile_DetailTempSave_error");
         return(Content("网络异常"));
     }
 }
        public ContentResult GetDetailTemp()
        {
            SYSCompanyProfile Profile = SYSCompanyProfile.GetProfile();

            if (Profile != null)
            {
                return(Content(Profile.Tmp));
            }
            return(Content(""));
        }
        public ActionResult Index()
        {
            SYSCompanyProfile Profile = SYSCompanyProfile.GetProfile();

            if (Profile == null)
            {
                Profile = new SYSCompanyProfile();
            }
            return(View(Profile));
        }
        public ContentResult Save(SYSCompanyProfile Profile)
        {
            int rtn = 0;

            if (Profile.ID == 0)
            {
                rtn = Profile.InsertAndReturnIdentity();
            }
            else
            {
                rtn = Profile.UpdateByID();
            }
            if (rtn > 0)
            {
                return(Content("ok"));
            }
            return(Content("保存失败"));
        }