示例#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);
        }
示例#2
0
 public bool DelData(string ma)
 {
     return(nvMod.DelData(ma));
 }
 public bool delData(String ma)
 {
     return(khMod.DelData(ma));
 }
示例#4
0
 public bool DelData(string strlenh)
 {
     return(khMod.DelData(strlenh));
 }