Beispiel #1
0
        /// <summary>
        /// 排序 - 向上
        /// </summary>
        /// <param name="id"></param>
        /// <param name="ln">LINENO</param>
        public void sortUp(string id)
        {
            // ADOSystem_Menu.sortUp(id);
            //string sql = " SELECT TOP 1 menu_id,Menu_Order FROM  system_menu WHERE Menu_Order<" + int.Parse(id.Split(',')[1]) + " AND Menu_Location='top' ORDER BY Menu_Order";
            string[] ids = id.Split(',');
            if (ids.Count() > 0)
            {
                string             filter     = @"Menu_Order<{0} AND Menu_Location='top' ORDER BY Menu_Order ";
                List <System_Menu> list       = instance.GetListByWhere(string.Format(filter, ids[1]));
                System_Menu        firstModel = list[0];

                System_Menu F1_Model = instance.GetByKey(int.Parse(ids[0]));
                //System_Menu F2_Model = instance.GetByKey(int.Parse(ids[1]));
            }
        }
Beispiel #2
0
        /// <summary>
        /// 获取实体数据
        /// </summary>
        /// <param name='strCondition'>条件(AND Code='11')</param>
        /// <returns>model</returns>
        public System_Menu GetModel(int id)
        {
            System_Menu model = instance.GetByKey(id);

            return(model);
        }