Ejemplo n.º 1
0
 /// <summary>
 /// 选择题库数据
 /// </summary>
 /// <param name="eid"></param>
 /// <returns>childrenJSON</returns>
 public static string seleSubject(string eid)
 {
     using (DAL.subjectClassDAL dal = new DAL.subjectClassDAL())
     {
         using (Common.JsonParse jp = new Common.JsonParse())
         {
             return(jp.ToChildren(dal.seleSubject(eid), 2));
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 查看科目系列
 /// </summary>
 /// <param name="sid"></param>
 /// <returns></returns>
 public static string subjectTree(int sid)
 {
     using (DAL.subjectClassDAL dal = new DAL.subjectClassDAL())
     {
         using (Common.JsonParse jp = new Common.JsonParse())
         {
             return(jp.ToChildren(dal.subjectTree(sid), sid));
         }
     }
 }