コード例 #1
0
 public void CreateLoaiXetNghiem(Medi_LoaiXN lxn)
 {
     using (SqlConnection connection = base.GetConnection())
     {
         SqlCommand command = new SqlCommand("_LoaiXetNghiemUpdate", connection)
         {
             CommandType = CommandType.StoredProcedure
         };
         command.Parameters.AddWithValue("@TenLoaiXN", lxn.TenLoaiXN);
         command.Parameters.AddWithValue("@ID_Cha", lxn.Id_Cha);
         command.Parameters.AddWithValue("@Index", lxn.Index);
         connection.Open();
         if (command.ExecuteNonQuery() <= 0)
         {
             throw new DataAccessException("Kiểm tra lại thông tin khách hàng");
         }
         command.Dispose();
     }
 }
コード例 #2
0
 public void Createlxn(Medi_LoaiXN pxn)
 {
     new Medi_LoaiXNDAO().CreateLoaiXetNghiem(pxn);
 }