Beispiel #1
0
        public void XoaLichTrinhVaoRa(LichTrinhVaoRaDTO _lichTrinhVaoRaDTO)
        {
            List <SqlParameter> sqlParams = new List <SqlParameter> {
                new SqlParameter("@MaLichTrinhVaoRa", _lichTrinhVaoRaDTO.MaLichTrinhVaoRa)
            };

            base.Procedure("LICHTRINHVAORA_delete", sqlParams);
        }
Beispiel #2
0
        public DataTable getLichTrinhVaoRaByMaLichTrinhVaoRa(LichTrinhVaoRaDTO _lichTrinhVaoRaDTO)
        {
            List <SqlParameter> sqlParams = new List <SqlParameter> {
                new SqlParameter("@MaLichTrinhVaoRa", _lichTrinhVaoRaDTO.MaLichTrinhVaoRa)
            };

            return(base.executeNonQuerya("LichTrinhVaoRa_getByMaLichTrinhVaoRa", sqlParams));
        }
Beispiel #3
0
        public ArrayList loadLichTrinhVaoRaLenComboBox()
        {
            SqlDataReader reader = this.dbHelper.ExecuteQuery("LICHTRINHVAORA_getall");
            ArrayList     list   = new ArrayList();

            while (reader.Read())
            {
                LichTrinhVaoRaDTO adto = new LichTrinhVaoRaDTO(reader.GetString(0), reader.GetString(1), reader.GetInt32(2), reader.GetBoolean(3), reader.GetBoolean(4), reader.GetDateTime(5), reader.GetDateTime(6), reader.GetInt32(7), reader.GetInt32(8), reader.GetInt32(9));
                list.Add(adto);
            }
            reader.Close();
            return(list);
        }
Beispiel #4
0
        public void ThemLichTrinhVaoRa(LichTrinhVaoRaDTO _lichTrinhVaoRaDTO)
        {
            List <SqlParameter> sqlParams = new List <SqlParameter> {
                new SqlParameter("@MaLichTrinhVaoRa", _lichTrinhVaoRaDTO.MaLichTrinhVaoRa),
                new SqlParameter("@TenLichTrinhVaoRa", _lichTrinhVaoRaDTO.TenLichTrinhVaoRa),
                new SqlParameter("@ChonLichTrinhVaoRa", _lichTrinhVaoRaDTO.ChonLichTrinhVaoRa),
                new SqlParameter("@MotLanChamCong", _lichTrinhVaoRaDTO.MotLanChamCong),
                new SqlParameter("@LoaiBoGio", _lichTrinhVaoRaDTO.LoaiBoGio),
                new SqlParameter("@TuGio", _lichTrinhVaoRaDTO.TuGio),
                new SqlParameter("@DenGio", _lichTrinhVaoRaDTO.DenGio),
                new SqlParameter("@ThoiGianNhoNhat", _lichTrinhVaoRaDTO.ThoiGianNhoNhat),
                new SqlParameter("@ThoiGianLonNhat", _lichTrinhVaoRaDTO.ThoiGianLonNhat),
                new SqlParameter("@KhoangCachGiuaHaiCapVaoRa", _lichTrinhVaoRaDTO.KhoangCachGiuaHaiCapVaoRa)
            };

            base.Procedure("LICHTRINHVAORA_add", sqlParams);
        }
 public void THEM_LICHTRINHVAORA(LichTrinhVaoRaDTO _lichTrinhVaoRaDTO)
 {
     this._lichTrinhVaoRaDAL.ThemLichTrinhVaoRa(_lichTrinhVaoRaDTO);
 }
 public void SUA_LICHTRINHVAORA(LichTrinhVaoRaDTO _lichTrinhVaoRaDTO)
 {
     this._lichTrinhVaoRaDAL.SuaLichTrinhVaoRa(_lichTrinhVaoRaDTO);
 }
 public DataTable get_LichTrinhVaoRaByMaLichTrinhVaoRa(LichTrinhVaoRaDTO _lichTrinhVaoRaDTO)
 {
     return(this._lichTrinhVaoRaDAL.getLichTrinhVaoRaByMaLichTrinhVaoRa(_lichTrinhVaoRaDTO));
 }
 public void DELETEALL_LICHTRINHVAORA(LichTrinhVaoRaDTO _lichTrinhVaoRaDTO)
 {
     this._lichTrinhVaoRaDAL.XoaTatCaLichTrinhVaoRa(_lichTrinhVaoRaDTO);
 }
Beispiel #9
0
        public void XoaTatCaLichTrinhVaoRa(LichTrinhVaoRaDTO _lichTrinhVaoRaDTO)
        {
            List <SqlParameter> sqlParams = new List <SqlParameter>();

            base.Procedure("LICHTRINHVAORA_deleteAll", sqlParams);
        }