using CnasSynchronusDAL;
using CnasSynchronusIDAL;
using CnasSynchrousModel;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
namespace CnasSynchronusClient
{
///
/// DB2数据库数据操作类
///
public class DB2CNASDataOperation : ICnasDataOperation
{
public IDB2DBService db2DataBaseService
{
get
{
return new Db2DBService();
}
}
public bool CheckLoginNameAndPwd(DataBaseInfo dataBase, string strUserName, string strPwd)
{
throw new NotImplementedException();
}
///
/// 验证MAC
///
///
///
///
public bool CheckMacMessage(DataBaseInfo dataBase, string strMac)
{
return db2DataBaseService.CheckMacMessage(dataBase, strMac);
}
public DataTable GetAllCNASTablesName(DataBaseInfo dataBase)
{
return db2DataBaseService.GetAllCNASTablesName(dataBase);
}
public DataTable GetCNASTablesStruct(string strTableName, DataBaseInfo dataBase)
{
return db2DataBaseService.GetCNASTablesStruct(strTableName, dataBase);
}
public DataTable GetCNASTableTypeLenth(string strTableName, DataBaseInfo dataBase)
{
return db2DataBaseService.GetCNASTableTypeLenth(strTableName, dataBase);
}
public DataTable GetLoginNameByPwd(DataBaseInfo dataBase, string strUserName, string strPwd)
{
return db2DataBaseService.GetLoginNameByPwd(dataBase, strUserName, strPwd);
}
public string GetMaxTimeByTableName(DataBaseInfo dataBase, string strTableName, string strDateColumn, string strInstrumentColumn, string strInstrumentValue)
{
return db2DataBaseService.GetMaxTimeByTableName(dataBase, strTableName, strDateColumn, strInstrumentColumn, strInstrumentValue);
}
public DataTable GetTableData(DataBaseInfo dataBase, string strSql)
{
throw new NotImplementedException();
}
public int InsertDataToCNASTable(DataTable dt, DataBaseInfo dataBase, List syncParamasInfos, string strInsturmentColumn, List lstFixedValue)
{
return db2DataBaseService.InsertDataToCNASTable(dt, dataBase, syncParamasInfos, strInsturmentColumn, lstFixedValue);
}
public bool InsertTableData(DataBaseInfo dataBase, string strSql)
{
throw new NotImplementedException();
}
public bool TestConnect(DataBaseInfo dataBase)
{
return db2DataBaseService.TestConnect(dataBase.DBHost, dataBase.DBName, dataBase.DBUser, dataBase.DBPwd, dataBase.DBPort);
}
}
}