예제 #1
0
 public static bool UpdateNewContent(string xid, string type, string text, ref string a_strErr)
 {
     if (SystemManageDAL.UpdateContent(xid, type, text, ref a_strErr) >= 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #2
0
 public static bool InsertNewContent(string type, string text, ref string a_strErr)
 {
     if (SystemManageDAL.InsertContent(type, text, ref a_strErr) >= 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #3
0
        /// <summary>
        /// 编辑内容配置
        /// </summary>
        /// <returns></returns>
        public static List <SelectListItem> GetNewConfig()
        {
            List <SelectListItem> ListItem = new List <SelectListItem>();
            DataTable             dtDesc   = SystemManageDAL.GetConfigContent();

            if (dtDesc == null)
            {
                return(ListItem);
            }
            SelectListItem SelListItem = new SelectListItem();

            SelListItem.Value = "";
            SelListItem.Text  = "请选择";
            ListItem.Add(SelListItem);
            for (int i = 0; i < dtDesc.Rows.Count; i++)
            {
                SelListItem       = new SelectListItem();
                SelListItem.Value = dtDesc.Rows[i]["Type"].ToString();
                SelListItem.Text  = dtDesc.Rows[i]["ss"].ToString();
                ListItem.Add(SelListItem);
            }
            return(ListItem);
        }
예제 #4
0
 public static UIDataTable getNewBasMangeGrid(int a_intPageSize, int a_intPageIndex, string where)
 {
     return(SystemManageDAL.getBasMangeGrid(a_intPageSize, a_intPageIndex, where));
 }