Esempio n. 1
0
        public string GetNoticeModel(Guid Id)
        {
            StringBuilder sb    = new StringBuilder();
            Notice        bll   = new Notice();
            var           model = bll.GetModel(Id);

            if (model == null)
            {
                return("[]");
            }
            return(sb.ToString());
        }
Esempio n. 2
0
        private void Bind()
        {
            if (!Id.Equals(Guid.Empty))
            {
                Page.Title = "编辑资讯";

                Notice bll   = new Notice();
                var    model = bll.GetModel(Id);
                if (model != null)
                {
                    txtTitle.Value   = model.Title;
                    txtParent.Value  = model.ContentTypeId.ToString();
                    txtaDescr.Value  = model.Descr;
                    txtContent.Value = model.ContentText;
                    hId.Value        = Id.ToString();
                }
            }
        }