日期:2014-05-20 浏览次数:20785 次
var q = from c in db.out_call where c.result != 1 && c.isAuto == 0 && c.outcallCount < c.outCallMaxCount select c;
if (q != null && q.Count() > 0)
{
for (int a = 1; a < q.Count(); a++)
{
anologCh = 1;
for (int i = 0; i < nMaxCH; i++)
{
if (ShDll.SsmGetChType(i) == 0 && ShDll.SsmGetChState(i) == 0 && SsmGetLineVoltage(i) > 10)
{
anologCh = i;
break;
}
}
if (anologCh == -1)
continue;
phone=q.ElementAt(a).phoneNum .ToString().Trim();