Exemple #1
0
        public static DataRow TimHH(string MaHH)
        {
            DataRow rs;

            try
            {
                HangHoa   dao   = new HangHoa();
                DataTable table = dao.GetHH(MaHH);
                rs = table.Rows[0];
                return(rs);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemple #2
0
 public static bool KiemTraHH(string MaHH)
 {
     try
     {
         HangHoa   dao   = new HangHoa();
         DataTable table = dao.GetHH(MaHH);
         if (table.Rows.Count > 0)
         {
             return(true);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(false);
 }