예제 #1
0
        public static DataRow TimNV(string MaNV)
        {
            DataRow rs;

            try
            {
                NhanVien  dao   = new NhanVien();
                DataTable table = dao.GetNV(MaNV);
                rs = table.Rows[0];
                return(rs);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #2
0
 public static bool KiemTraNV(string MaNV)
 {
     try
     {
         NhanVien  dao   = new NhanVien();
         DataTable table = dao.GetNV(MaNV);
         if (table.Rows.Count > 0)
         {
             return(true);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(false);
 }