Exemple #1
0
        public static bool XoaPhuTung(string maPT)
        {
            if (!ChiTietPhieuSuaChuaBLL.KiemTraPhuTung(maPT))
            {
                PhuTungDAL.XoaPhuTung(maPT);
                return(true);
            }

            return(false);
        }
Exemple #2
0
        public static bool XoaTienCong(string noiDung)
        {
            if (!ChiTietPhieuSuaChuaBLL.KiemTraTienCong(noiDung))
            {
                TienCongDAL.XoaTienCong(noiDung);
                return(true);
            }

            return(false);
        }
Exemple #3
0
        public static List <ChiTietPhieuSuaChua> GetCTPSC(string bienSo)
        {
            DataTable dt = PhieuSuaChuaDAL.GetListPhieu(bienSo);
            List <ChiTietPhieuSuaChua> listChiTiet = new List <ChiTietPhieuSuaChua>();

            foreach (DataRow row in dt.Rows)
            {
                foreach (ChiTietPhieuSuaChua chiTiet in ChiTietPhieuSuaChuaBLL.GetList(row.ItemArray[0].ToString()))
                {
                    listChiTiet.Add(chiTiet);
                }
            }
            return(listChiTiet);
        }