예제 #1
0
 public List<DTO.DTOtblFUNCTION> TimkiemtblFUNCTION(string Keyword)
 {
     List<DTO.DTOtblFUNCTION> list = new List<DTO.DTOtblFUNCTION>();
     DataTable dt = tblfunction.TimkiemtblFUNCTION(Keyword);
     foreach(DataRow row in dt.Rows)
     {
         DTO.DTOtblFUNCTION e =new DTO.DTOtblFUNCTION();
         e.FUNCTIONID=Int32.Parse(row["FUNCTIONID"].ToString());
         e.MODULEID=Int32.Parse(row["MODULEID"].ToString());
         e.FUNCTIONNAME=row["FUNCTIONNAME"].ToString();
         list.Add(e);
     }
     return list;
 }
예제 #2
0
 public List<DTO.DTOtblFUNCTION> LayTheoMatblFUNCTION(int FUNCTIONID)
 {
     List<DTO.DTOtblFUNCTION> list = new List<DTO.DTOtblFUNCTION>();
     DataTable dt = tblfunction.LayTheoMatblFUNCTION(FUNCTIONID);
     foreach(DataRow row in dt.Rows)
     {
         DTO.DTOtblFUNCTION e =new DTO.DTOtblFUNCTION();
         e.FUNCTIONID=Int32.Parse(row["FUNCTIONID"].ToString());
         e.MODULEID=Int32.Parse(row["MODULEID"].ToString());
         e.FUNCTIONNAME=row["FUNCTIONNAME"].ToString();
         list.Add(e);
     }
     return list;
 }