Exemple #1
0
        private void GetAboutInfo()
        {
            try
            {
                decimal AboutId = ReDecimal("AboutId");

                BLL.AboutBLL bll  = new BLL.AboutBLL();
                DataTable    dt   = bll.GetAbout(AboutId);
                string       json = Common.JsonHelper.ToJsonNo1(dt);
                ReDict.Add("info", json);
                ReTrue();
            }
            catch (Exception ex)
            {
                ReThrow(ex);
            }
        }
Exemple #2
0
 /// <summary>
 /// 获得列表
 /// </summary>
 public void GetAboutList()
 {
     try
     {
         string        AboutType   = ReStr("AboutType");
         int           CurrentPage = ReInt("CurrentPage", 1);
         BLL.AboutBLL  bll         = new BLL.AboutBLL();
         StringBuilder s           = new StringBuilder();
         s.Append(" 1=1 ");
         s.Append("  ");
         DataSet ds = bll.GetAboutPageList(s.ToString(), CurrentPage);
         RePage(ds);
     }
     catch (Exception ex)
     {
         ReThrow(ex);
     }
 }
Exemple #3
0
        private void SaveAbout()
        {
            try
            {
                Model.AboutModel model = new Model.AboutModel();
                model.AboutId      = ReDecimal("AboutId");
                model.AboutContent = ReStrDeCode("AboutContent");
                model.AboutTitle   = ReStr("AboutTitle");

                BLL.AboutBLL bll = new BLL.AboutBLL();
                bll.SaveAbout(model);

                ReTrue();
            }
            catch (Exception ex)
            {
                ReThrow(ex);
            }
        }