if (e.ColumnIndex == 1)
{
if (e.Value == null)
return;
int aa, h, m, s;
int.TryParse(e.Value.ToString(), out aa);
aa = aa / 1000;
if (aa > 86399)
aa = 86399;
h = aa / 3600;
m = (aa % 3600) / 60;
s = (aa % 3600) % 60;
this.strB.Remove(0, this.strB.Length);
this.strB.AppendFormat("{0:00}:{1:00}:{2:00}", h, m, s);
e.Value = this.strB.ToString();
e.FormattingApplied = true;
}
}
}
}
6 结语
电台网络系统互通平台采用两台512MB内存双千兆网卡IBM mt8837机架式服务器和Windows 2003 Server作为底层平台。经过两年多的运行未发生任何安全事件,通过定期地杀毒软件升级和病毒扫描,没有发现感染任何病毒。经测试和计算,数据传输速度最高达458Mb/s,用户对系统的性能很满意。与采用私有协议的网桥、网闸相比,由于采用了通用平台,其成本很低,升级方便。互通交换平台的开发和运行是电台网络化进程中一次积极的尝试,它使江苏电台网络实现了“开放性架构”和各功能网之间、台网和互联网之间有条件的安全互联,大大提高了节目生产和管理效率。
|