private DataTable SortTable(DataTable dt,string[] pids)
{
DataTable dt0 = dt.Clone(); //复制原表结构
for(int i=;i<pids.Length;i++)
{
if(pids[i] != string.Empty)
{
DataRow[] drs = dt.Select("pos_id=" + pids[i]);
if(drs.Length > )
{
foreach(DataRow dr in drs)
{
dt0.ImportRow(dr); //导入行
}
}
}
}
return dt0;
}
05-07 15:19