Exemple #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ModifiedTimestamp != null ? ModifiedTimestamp.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CreatedIn != null ? CreatedIn.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ModifiedIn != null ? ModifiedIn.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Title != null ? Title.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Language != null ? Language.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CcliIdentifier != null ? CcliIdentifier.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Copyright != null ? Copyright.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ReleaseYear != null ? ReleaseYear.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Authors != null ? Authors.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RightsManagement != null ? RightsManagement.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Publisher != null ? Publisher.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Version != null ? Version.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Key != null ? Key.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Transposition;
         hashCode = (hashCode * 397) ^ (Tempo != null ? Tempo.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Variant != null ? Variant.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Themes != null ? Themes.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Comment != null ? Comment.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SongBooks != null ? SongBooks.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Parts != null ? Parts.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PartSequence != null ? PartSequence.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (QualityIssues != null ? QualityIssues.GetHashCode() : 0);
         return(hashCode);
     }
 }
        public AjaxResult CopyrightListSave(Copyright model)
        {
            Copyright ent = db.Copyright.FirstOrDefault(m => m.Id == model.Id);

            if (ent == null)
            {
                ent            = model;
                ent.Address    = "重庆渝北创意公园13栋5单元5层";
                ent.Tel        = "023 - 81211678";
                ent.Email      = "*****@*****.**";
                ent.UpdateTime = DateTime.Now;
                db.Copyright.Add(ent);
            }
            else
            {
                ent.Address    = model.Address;
                ent.Email      = model.Email;
                ent.Tel        = model.Tel;
                ent.UpdateTime = DateTime.Now;
            }
            int r = db.SaveChanges();

            if (r <= 0)
            {
                return(new AjaxResult("保存失败"));
            }
            return(new AjaxResult("保存成功", 0));
        }
        public ActionResult CreateAuthor(int id, Author author)
        {
            if (Thread.CurrentPrincipal.Identity.IsAuthenticated)
            {
                Copyright copyright = db.Copyrights
                                      .Include(m => m.Payments)
                                      .SingleOrDefault(m => m.CopyrightID == id);
                if (copyright == null)
                {
                    string str_model = "Помилка при створенні автора. Авторське право не знайдено.";
                    return(View("~/Views/Shared/WriteStringView.cshtml", model: str_model));
                }

                try
                {
                    copyright.Authors.Add(author);
                    db.SaveChanges();
                }
                catch (System.Exception ex)
                {
                    throw ex;
                }

                //return View("~/Views/Applications/Edit.cshtml", model: application);
                return(RedirectToAction("Edit", "Copyrights", new { id = copyright.CopyrightID }));
            }
            else
            {
                string str_model = "You must be authenticated for this action. Please log in.";

                return(View("~/Views/Shared/WriteStringView.cshtml", model: str_model));
            }
        }
Exemple #4
0
        public override IDeepCopyable CopyTo(IDeepCopyable other)
        {
            var dest = other as EvidenceFocus;

            if (dest == null)
            {
                throw new ArgumentException("Can only copy to an object of the same type", "other");
            }

            base.CopyTo(dest);
            if (UrlElement != null)
            {
                dest.UrlElement = (Hl7.Fhir.Model.FhirUri)UrlElement.DeepCopy();
            }
            if (Identifier != null)
            {
                dest.Identifier = new List <Hl7.Fhir.Model.Identifier>(Identifier.DeepCopy());
            }
            if (VersionElement != null)
            {
                dest.VersionElement = (Hl7.Fhir.Model.FhirString)VersionElement.DeepCopy();
            }
            if (NameElement != null)
            {
                dest.NameElement = (Hl7.Fhir.Model.FhirString)NameElement.DeepCopy();
            }
            if (StatusElement != null)
            {
                dest.StatusElement = (Code <Hl7.Fhir.Model.PublicationStatus>)StatusElement.DeepCopy();
            }
            if (UseContext != null)
            {
                dest.UseContext = new List <Hl7.Fhir.Model.UsageContext>(UseContext.DeepCopy());
            }
            if (DateElement != null)
            {
                dest.DateElement = (Hl7.Fhir.Model.FhirDateTime)DateElement.DeepCopy();
            }
            if (Note != null)
            {
                dest.Note = new List <Hl7.Fhir.Model.Annotation>(Note.DeepCopy());
            }
            if (Copyright != null)
            {
                dest.Copyright = (Hl7.Fhir.Model.Markdown)Copyright.DeepCopy();
            }
            if (CiteAs != null)
            {
                dest.CiteAs = (Hl7.Fhir.Model.ResourceReference)CiteAs.DeepCopy();
            }
            if (Characteristic != null)
            {
                dest.Characteristic = new List <Hl7.Fhir.Model.EvidenceFocus.CharacteristicComponent>(Characteristic.DeepCopy());
            }
            if (RelatedArtifact != null)
            {
                dest.RelatedArtifact = new List <Hl7.Fhir.Model.RelatedArtifact>(RelatedArtifact.DeepCopy());
            }
            return(dest);
        }
Exemple #5
0
        protected override void Execute(NativeActivityContext context)
        {
            var pModel = new PackageModel();

            pModel.Id          = PackageId.Get(context);
            pModel.Description = Description.Get(context);
            pModel.Version     = Models.PackageModel.CreateFullVersionFromMajorMinor(MajorVersion.Get(context), MinorVersion.Get(context));
            pModel.Authors     = Authors.Get(context);
            pModel.Owners      = Owners.Get(context);
            pModel.LicenseUrl  = LicenseUrl.Get(context);
            pModel.ProjectUrl  = ProjectUrl.Get(context);
            pModel.IconUrl     = IconUrl.Get(context);
            pModel.RequireLicenseAcceptance = RequireLicenseAcceptance.Get(context);
            pModel.ReleaseNotes             = ReleaseNotes.Get(context);
            pModel.Copyright              = Copyright.Get(context);
            pModel.Tags                   = Tags.Get(context);
            pModel.DirectorySet           = DirectorySet.Get(context);
            pModel.ModelsAssemblyGuid     = ModelsAssemblyGuid.Get(context) ?? Guid.NewGuid().ToString();
            pModel.ActivitiesAssemblyGuid = ActivitiesAssemblyGuid.Get(context) ?? Guid.NewGuid().ToString();

            this.PackageModel.Set(context, pModel);

            context.Properties.Add("PackageModel", pModel);

            context.ScheduleActivity(this.Body);
        }
Exemple #6
0
        public Dictionary <string, string> GetAllMetaTagsDataFormatted() // Returns all metadata of the track in a formatted, displayable manner
        {
            Dictionary <string, string> allTags = new Dictionary <string, string>();

            allTags.Add(nameof(Title), Title.ToString());
            allTags.Add(nameof(Album), Album.ToString());
            allTags.Add(nameof(Copyright), Copyright.ToString());
            allTags.Add(nameof(AlbumArtists), AlbumArtists.ToString());
            allTags.Add(nameof(AlbumArtistsSort), AlbumArtistsSort.ToString());
            allTags.Add(nameof(Genres), Genres.ToString());
            allTags.Add(nameof(BeatsPerMinute), BeatsPerMinute.ToString());
            allTags.Add(nameof(Year), Year.ToString());
            allTags.Add(nameof(Track), Track.ToString());
            allTags.Add(nameof(TrackCount), TrackCount.ToString());
            allTags.Add(nameof(Disc), Disc.ToString());
            allTags.Add(nameof(DiscCount), DiscCount.ToString());
            allTags.Add(nameof(MusicBrainzReleaseArtistId), MusicBrainzReleaseArtistId.ToString());
            allTags.Add(nameof(MusicBrainzTrackId), MusicBrainzTrackId.ToString());
            allTags.Add(nameof(MusicBrainzDiscId), MusicBrainzDiscId.ToString());
            allTags.Add(nameof(MusicBrainzReleaseStatus), MusicBrainzReleaseStatus.ToString());
            allTags.Add(nameof(MusicBrainzReleaseType), MusicBrainzReleaseType.ToString());
            allTags.Add(nameof(MusicBrainzReleaseCountry), MusicBrainzReleaseCountry.ToString());
            allTags.Add(nameof(MusicBrainzReleaseId), MusicBrainzReleaseId.ToString());
            allTags.Add(nameof(MusicBrainzArtistId), MusicBrainzArtistId.ToString());

            return(allTags);
        }
Exemple #7
0
        public Metadata Clone()
        {
            Metadata clone = new Metadata();

            clone.Id = Id != null?Id.Clone() : null;

            clone.Version = Version != null?Version.Clone() : null;

            clone.Title = Title != null?Title.Clone() : null;

            clone.Authors = Authors != null?Authors.Clone() : null;

            clone.Description = Description != null?Description.Clone() : null;

            clone.Language = Language != null?Language.Clone() : null;

            clone.Copyright = Copyright != null?Copyright.Clone() : null;

            clone.Owners                   = Owners;
            clone.ReleaseNotes             = ReleaseNotes;
            clone.Summary                  = Summary;
            clone.ProjectUrl               = ProjectUrl;
            clone.LicenseUrl               = LicenseUrl;
            clone.IconUrl                  = IconUrl;
            clone.Tags                     = Tags;
            clone.RequireLicenseAcceptance = RequireLicenseAcceptance;
            clone.DevelopmentDependency    = DevelopmentDependency;
            clone.Dependencies             = Dependencies;

            return(clone);
        }
Exemple #8
0
 public string GetDefaultCopyright()
 {
     if (Copyright.ContainsKey(Constants.DefaultLocale))
     {
         return(Copyright[Constants.DefaultLocale]);
     }
     return(Copyright.Count > 0 ? Author.First().Value : string.Empty);
 }
        private void TestCopyright(Header h)
        {
            Copyright msg = new Copyright();

            msg.Deserialise(h, msg.CreatePacketType(h, Input, Input));

            Assert.AreEqual("Copyright 2009 Formula One Administration Ltd.", msg.Message);
        }
Exemple #10
0
        public void TestValidHeaders()
        {
            var copyright = new Copyright(hp);

            foreach (var header in headerList)
            {
                Assert.IsTrue(copyright.FindCopyright(header));
            }
        }
Exemple #11
0
        public void TestValidHeadersAlternate()
        {
            var copyright = new Copyright(acme);

            foreach (var header in altHeaderList)
            {
                Assert.IsTrue(copyright.FindCopyright(header));
            }
        }
        public ActionResult CopyrightEdit(int?id)
        {
            var ent = _copyrightManager.GetCopyrightById(id);

            if (ent == null)
            {
                ent = new Copyright();
            }
            return(View(ent));
        }
Exemple #13
0
        public void TestModifiedHeadersAlternate()
        {
            var copyright = new Copyright(acme);

            for (int index = 0; index < altHeaderList.Count; index++)
            {
                var newHeader = copyright.ModifyHeader(altHeaderList[index]);
                Assert.AreEqual(altModifiedHeaderList[index], newHeader);
            }
        }
Exemple #14
0
        public void TestModifiedHeaders()
        {
            var copyright = new Copyright(hp);

            for (int index = 0; index < headerList.Count; index++)
            {
                var newHeader = copyright.ModifyHeader(headerList[index]);
                Assert.AreEqual(modifiedHeaderList[index], newHeader);
            }
        }
Exemple #15
0
        private string PrepareSkeleton(string skeleton)
        {
            string tagsContent = string.Join(", ", Tags.Select(t => t.XmlEscaped()));

            return(skeleton.Replace("%version%", Version.XmlEscaped())
                   .Replace("%author%", Author.XmlEscaped())
                   .Replace("%copyright%", Copyright.XmlEscaped())
                   .Replace("%description%", Description.XmlEscaped())
                   .Replace("%projectname%", Name.XmlEscaped())
                   .Replace("%tags%", tagsContent)
                   .Replace("%guid.1%", Guid.NewGuid().ToString().ToUpper())
                   .Replace("%guid.2%", Guid.NewGuid().ToString().ToUpper())
                   .Replace("%guid.3%", Guid.NewGuid().ToString().ToUpper()));
        }
Exemple #16
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (Brand != null ? Brand.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Copyright != null ? Copyright.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Avatar != null ? Avatar.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Github != null ? Github.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Linkedin != null ? Linkedin.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Twitter != null ? Twitter.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemple #17
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (CcliIdentifier != null ? CcliIdentifier.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Title != null ? Title.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Author != null ? Author.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Copyright != null ? Copyright.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Admin != null ? Admin.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Themes != null ? Themes.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Key != null ? Key.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Verses != null ? Verses.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemple #18
0
        public SecondMainMenu(IContentProvider content) : base(content)
        {
            Colors.FrameColor          = XleColor.Brown;
            Colors.FrameHighlightColor = XleColor.Yellow;
            Colors.BorderColor         = XleColor.DarkGray;
            Colors.BackColor           = XleColor.Orange;
            Colors.TextColor           = XleColor.White;

            MenuItems.Add("Return to first menu");
            MenuItems.Add("Start a new game");
            MenuItems.Add("Restart a game");
            MenuItems.Add("Erase a character");

            Instruction.SetColor(XleColor.Yellow);
            Copyright.SetColor(XleColor.Yellow);
        }
Exemple #19
0
 /// <summary>
 /// Creates instance and loads the data from the node.
 /// </summary>
 /// <param name="node">Meta node</param>
 public Meta(OnlineMapsXML node):this()
 {
     foreach (OnlineMapsXML n in node)
     {
         if (n.name == "name") name = n.Value();
         else if (n.name == "desc") description = n.Value();
         else if (n.name == "author") author = new Person(n);
         else if (n.name == "copyright") copyright = new Copyright(n);
         else if (n.name == "link") links.Add(new Link(n));
         else if (n.name == "time") time = DateTime.Parse(n.Value());
         else if (n.name == "keywords") keywords = n.Value();
         else if (n.name == "bounds") bounds = new Bounds(n);
         else if (n.name == "extensions") extensions = n;
         else Debug.Log(n.name);
     }
 }
        public ActionResult DeleteConfirmed(int id)
        {
            if (Thread.CurrentPrincipal.Identity.IsAuthenticated)
            {
                Copyright copyright = db.Copyrights.Find(id);
                db.Copyrights.Remove(copyright);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }
            else
            {
                string model = "You must be authenticated for this action. Please log in.";

                return(View("~/Views/Shared/WriteStringView.cshtml", model: model));
            }
        }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ModifiedTimestamp != null ? ModifiedTimestamp.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CreatedIn != null ? CreatedIn.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ModifiedIn != null ? ModifiedIn.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Title != null ? Title.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CcliIdentifier != null ? CcliIdentifier.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Copyright != null ? Copyright.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ReleaseYear != null ? ReleaseYear.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Comments != null ? Comments.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Verses != null ? Verses.GetHashCode() : 0);
         return(hashCode);
     }
 }
        // GET: Copyrights/Create
        public ActionResult Create()
        {
            if (Thread.CurrentPrincipal.Identity.IsAuthenticated)
            {
                Copyright newCop = new Copyright();
                db.Copyrights.Add(newCop);
                db.SaveChanges();

                return(RedirectToAction("Edit", "Copyrights", new { id = newCop.CopyrightID }));
            }
            else
            {
                string model = "You must be authenticated for this action. Please log in.";

                return(View("~/Views/Shared/WriteStringView.cshtml", model: model));
            }
        }
Exemple #23
0
        public static Copyright ParseCopyright(Dictionary <string, string> json)
        {
            var retval = new Copyright();
            var cOrP   = json["type"];

            if (cOrP == "C")
            {
                retval.Rights = Copyright.Type.C;
            }
            else
            {
                retval.Rights = Copyright.Type.P;
            }
            retval.value = json["text"];

            return(retval);
        }
Exemple #24
0
        /// <summary>加载时触发</summary>
        protected override void OnLoaded()
        {
#if __CORE__
            if (StartPage.IsNullOrEmpty())
            {
                StartPage =
                    // 避免出现生成 "/Admin/Admin/Index/Main" 这样的情况
                    //NewLife.Web.HttpContext.Current?.Request.PathBase.ToString().EnsureEnd("/") +
                    "/Admin/Index/Main";
            }
#else
            if (StartPage.IsNullOrEmpty())
            {
                StartPage = System.Web.HttpRuntime.AppDomainAppVirtualPath.EnsureEnd("/") + "Admin/Index/Main";
            }
#endif

            var web = Runtime.IsWeb;

            //if (AvatarPath.IsNullOrEmpty()) AvatarPath = web ? "..\\Avatars" : "Avatars";
            if (DefaultRole.IsNullOrEmpty() || DefaultRole == "3")
            {
                DefaultRole = "普通用户";
            }

            if (JwtSecret.IsNullOrEmpty() || JwtSecret.Split(':').Length != 2)
            {
                JwtSecret = $"HS256:{Rand.NextString(16)}";
            }

            // 取版权信息
            if (Copyright.IsNullOrEmpty())
            {
                var asm = Assembly.GetEntryAssembly() ?? Assembly.GetExecutingAssembly();
                if (asm != null)
                {
                    var att = asm.GetCustomAttribute <AssemblyCopyrightAttribute>();
                    if (att != null)
                    {
                        Copyright = att.Copyright;
                    }
                }
            }

            base.OnLoaded();
        }
        public ActionResult Edit(Copyright copyright)
        {
            if (Thread.CurrentPrincipal.Identity.IsAuthenticated)
            {
                if (ModelState.IsValid)
                {
                    db.Entry(copyright).State = EntityState.Modified;
                    db.SaveChanges();
                    return(RedirectToAction("Index"));
                }
                return(View(copyright));
            }
            else
            {
                string model = "You must be authenticated for this action. Please log in.";

                return(View("~/Views/Shared/WriteStringView.cshtml", model: model));
            }
        }
        public ActionResult CreateCopyrightComment(int id, Comment appComment)
        {
            if (Thread.CurrentPrincipal.Identity.IsAuthenticated)
            {
                Copyright copyright = db.Copyrights
                                      .Include(m => m.Payments)
                                      .SingleOrDefault(m => m.CopyrightID == id);

                copyright.Comments.Add(appComment);
                db.SaveChanges();

                return(View("~/Views/Copyright/Details.cshtml", model: copyright));
            }
            else
            {
                string model = "You must be authenticated for this action. Please log in.";

                return(View("~/Views/Shared/WriteStringView.cshtml", model: model));
            }
        }
        // GET: Copyrights/Details/5
        public ActionResult Details(int?id)
        {
            if (Thread.CurrentPrincipal.Identity.IsAuthenticated)
            {
                if (id == null)
                {
                    return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
                }
                Copyright copyright = db.Copyrights.Find(id);
                if (copyright == null)
                {
                    return(HttpNotFound());
                }
                return(View(copyright));
            }
            else
            {
                string model = "You must be authenticated for this action. Please log in.";

                return(View("~/Views/Shared/WriteStringView.cshtml", model: model));
            }
        }
        protected override PackageModel Execute(CodeActivityContext context)
        {
            var pModel = new PackageModel();

            pModel.Id          = PackageId.Get(context);
            pModel.Description = Description.Get(context);
            pModel.Version     = Version.Get(context);
            pModel.Authors     = Authors.Get(context);
            pModel.Owners      = Owners.Get(context);
            pModel.LicenseUrl  = LicenseUrl.Get(context);
            pModel.ProjectUrl  = ProjectUrl.Get(context);
            pModel.IconUrl     = IconUrl.Get(context);
            pModel.RequireLicenseAcceptance = RequireLicenseAcceptance.Get(context);
            pModel.ReleaseNotes             = ReleaseNotes.Get(context);
            pModel.Copyright              = Copyright.Get(context);
            pModel.Tags                   = Tags.Get(context);
            pModel.DirectorySet           = DirectorySet.Get(context);
            pModel.ModelsAssemblyGuid     = ModelsAssemblyGuid.Get(context);
            pModel.ActivitiesAssemblyGuid = ActivitiesAssemblyGuid.Get(context);

            return(pModel);
        }
Exemple #29
0
        public int Add(Copyright model)
        {
            string sql = "insert into Copyright(Title,Content,Address,Tel1,Tel2,QQ1,QQ2,Wechat,Email,Logo,Images)";

            sql += " values(@Title,@Content,@Address,@Tel1,@Tel2,@QQ1,@QQ2,@Wechat,@Email,@Logo,@Images)";

            SqlParameter[] param =
            {
                new SqlParameter("@Title",   model.Title),
                new SqlParameter("@Content", model.Content),
                new SqlParameter("@Address", model.Address),
                new SqlParameter("@Tel1",    model.Tel1),
                new SqlParameter("@Tel2",    model.Tel2),
                new SqlParameter("@QQ1",     model.QQ1),
                new SqlParameter("@QQ2",     model.QQ2),
                new SqlParameter("@Wechat",  model.Wechat),
                new SqlParameter("@Email",   model.Email),
                new SqlParameter("@Logo",    model.Logo),
                new SqlParameter("@Images",  model.Images)
            };
            return(SqlHelper.ExecuteNonQuery(sql, param));
        }
Exemple #30
0
        public int Edit(Copyright model)
        {
            string sql =
                "update Copyright set Title=@Title,Content=@Content,Address=@Address,Tel1=@Tel1,Tel2=@Tel2,QQ1=@QQ1,QQ2=@QQ2,Wechat=@Wechat,Logo=@Logo,Images=@Images where Id = @Id";

            SqlParameter[] param =
            {
                new SqlParameter("@Title",   model.Title),
                new SqlParameter("@Content", model.Content),
                new SqlParameter("@Address", model.Address),
                new SqlParameter("@Tel1",    model.Tel1),
                new SqlParameter("@Tel2",    model.Tel2),
                new SqlParameter("@QQ1",     model.QQ1),
                new SqlParameter("@QQ2",     model.QQ2),
                new SqlParameter("@Wechat",  model.Wechat),
                new SqlParameter("@Email",   model.Email),
                new SqlParameter("@Logo",    model.Logo),
                new SqlParameter("@Images",  model.Images),
                new SqlParameter("@Id",      model.Id)
            };
            return(SqlHelper.ExecuteNonQuery(sql, param));
        }