using System.Collections.Specialized;
NameValueCollection mycol = new NameValueCollection();
string[] valueeach = valuelist.Split(',');
int count = valueeach.Length / 8;
for (int i = 0; i < count; i++)
{
string pnindex = valueeach[i * 8].ToString();
string typeindex = valueeach[i * 8 + 6].ToString();
if (mycol["pnindex"] == null)
{
mycol.Add(pnindex, typeindex);
}
if (mycol["pnindex"] != typeindex)
{
WFWMS.Lib.MessageBox.Show(this.Page, "相同的PN或型号的报废类别必须相同");
return;
}
}