示例#1
0
        /// <summary>
        ///  学期列表
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public void Term_List(HttpContext context)
        {
            IES.JW.Model.Term model = new IES.JW.Model.Term {
                Key = ""
            };
            IES.G2S.JW.BLL.TermBLL   termbll = new IES.G2S.JW.BLL.TermBLL();
            List <IES.JW.Model.Term> list    = termbll.Term_List(model);

            if (list != null)
            {
                context.Response.Write(Newtonsoft.Json.JsonConvert.SerializeObject(list));
            }
            else
            {
                context.Response.Write("False");
            }
        }
示例#2
0
 /// <summary>
 ///  学期列表
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public void Term_List(HttpContext context)
 {
     IES.JW.Model.Term model = new IES.JW.Model.Term { Key = "" };
     IES.G2S.JW.BLL.TermBLL termbll = new IES.G2S.JW.BLL.TermBLL();
     List<IES.JW.Model.Term> list = termbll.Term_List(model);
     if (list != null)
     {
         context.Response.Write(Newtonsoft.Json.JsonConvert.SerializeObject(list));
     }
     else
     {
         context.Response.Write("False");
     }
 }