Exemplo n.º 1
0
 public void ChiTietPDV_Update(ChiTietPDV ctpdv)
 {
     using (var cmd = new SqlCommand("SP_ChiTietPDV_Update", GetConnection()))
     {
         cmd.CommandType = CommandType.StoredProcedure;
         cmd.Parameters.Add(new SqlParameter("@MaCTPDV", ctpdv.MaCTPDV));
         cmd.Parameters.Add(new SqlParameter("@MaPDV", ctpdv.MaPDV));
         cmd.Parameters.Add(new SqlParameter("@SoLuong", ctpdv.SoLuong));
         cmd.Parameters.Add(new SqlParameter("@MaDV", ctpdv.MaDV));
         cmd.ExecuteNonQuery();
     }
 }
Exemplo n.º 2
0
 public static void Update(ChiTietPDV kh)
 {
     db.ChiTietPDV_Update(kh);
 }
Exemplo n.º 3
0
 public static void Insert(ChiTietPDV kh)
 {
     db.ChiTietPDV_Insert(kh);
 }