コード例 #1
0
        ConnectToSQL _conn = new ConnectToSQL();//Initialize connectoSQl class

        public bool AddData(clsChiTietChuyenHang chiTietChuyenHang)
        {
            _conn.CMD.CommandText = String.Format("INSERT [dbo].[tbChiTietChuyenHang] (idPhieuChuyen,SoLuong,DonGia,idMaVachSanPham) "
                                                  + "VALUES (N'{0}',N'{1}',N'{2}',N'{3}')"
                                                  , chiTietChuyenHang.IdChuyenHang
                                                  , chiTietChuyenHang.SoLuong
                                                  , chiTietChuyenHang.DonGia
                                                  , chiTietChuyenHang.IdMaVachSanPham
                                                  );

            return(_conn.ExecuteCMD());
        }
コード例 #2
0
 public bool AddData(clsChiTietChuyenHang chiTietChuyenHang)
 {
     return(_mdlChiTietChuyenHang.AddData(chiTietChuyenHang));
 }