Exemple #1
0
        public bool DelData(string ma)
        {
            var hoaDons = hdMod.GetDataByKH(ma);

            bool isDeleted = true;

            foreach (DataRow row in hoaDons.Rows)
            {
                isDeleted = ctMod.DelDataHoaDon(Convert.ToString(row["MaHD"]));
            }

            if (isDeleted)
            {
                isDeleted = hdMod.DelDataKhachHang(ma);
            }
            if (isDeleted)
            {
                isDeleted = nvMod.DelData(ma);
            }
            return(isDeleted);
        }
Exemple #2
0
 public bool DelData(string ma)
 {
     return(nvMod.DelData(ma));
 }
 public bool delData(String ma)
 {
     return(khMod.DelData(ma));
 }
Exemple #4
0
 public bool DelData(string strlenh)
 {
     return(khMod.DelData(strlenh));
 }