//---------------------------------------------------------------- //HAM PHU public void addParameter(SqlCommand cmd, ET_HoaDon hoaDon, String[] strNameParametor) { ArrayList list = hoaDon.getAllProperties(); foreach (string item in strNameParametor) { SqlParameter pt = new SqlParameter(item, list[Array.IndexOf(strNameParametor, item)]); cmd.Parameters.Add(pt); } }