/// <summary> /// 获取发送地址表格 /// </summary> /// <returns></returns> public DataTable loadSendDataTable() { SVInterfaceApplication app = SVApplication.Instance; SVSqlDataBase sqlDataBase = app.DataBase; DataTable sendIO = sqlDataBase.getSendAddressForIO(SVProData.stationID); DataTable sendIO2 = sqlDataBase.getSendAddressForIO2(SVProData.stationID); DataTable sendNormal = sqlDataBase.getSendAddressForNormal(SVProData.stationID); DataTable sendNormal2 = sqlDataBase.getSendAddressForNormal2(SVProData.stationID); ///合并表格 DataTable result = new DataTable(); if (sendIO != null) { result.Merge(sendIO); } if (sendIO2 != null) { dealDataTableAddress(sendIO2); result.Merge(sendIO2); } if (sendNormal != null) { sendNormal.Columns[0].ColumnName = "ioblockname"; result.Merge(sendNormal); } if (sendNormal2 != null) { sendNormal2.Columns[0].ColumnName = "ioblockname"; dealDataTableAddress(sendNormal2); result.Merge(sendNormal2); } return(result); }
public SVProject() : base() { _pageDic = new Dictionary <String, Dictionary <String, String> >(); _sqlDataBase = new SVSqlDataBase(); }