|
- using CnasLocalIDAL;
- using CnasSynchronousCommon;
- using CnasSynchrousModel;
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.Linq;
- using System.Text;
-
- namespace SyncLocalDAL
- {
- public class InstrumentInfoDAL : LocalDBbase, IInstrument
- {
-
- public DataTable GetAllInstrumentInfosToDT()
- {
- throw new NotImplementedException();
- }
-
- public DataTable GetInstrumentInfosByTypeToDT(string strType)
- {
- throw new NotImplementedException();
- }
-
- public List<SyncInstrumentItemInfo> GetAllInstruments()
- {
- List<SyncInstrumentItemInfo> lstSyncInstrument = new List<SyncInstrumentItemInfo>();
- try
- {
- //读取本地文件中存储的配置信息
- System.Xml.Serialization.XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer(lstSyncInstrument.GetType());
- System.IO.FileStream stream = new System.IO.FileStream(FileHelper.getBasePath() + "/Data/SyncInStrumentData.xml", System.IO.FileMode.Open);
- lstSyncInstrument = (List<SyncInstrumentItemInfo>)serializer.Deserialize(stream);
- stream.Close();
- }
- catch (Exception ex)
- {
- AppLog.Error(ex.Message);
- throw ex;
- }
- return lstSyncInstrument;
- }
-
- public List<SyncInstrumentItemInfo> GetInstrumentsByType(string strType)
- {
- throw new NotImplementedException();
- }
-
- public int InsertInstrumentInfo(SyncInstrumentItemInfo instrument)
- {
- throw new NotImplementedException();
- }
-
- public int UpdateInstrumentInfo(SyncInstrumentItemInfo instrument)
- {
- throw new NotImplementedException();
- }
-
- public int DeleteInstrumentInfo(SyncInstrumentItemInfo instrument)
- {
- throw new NotImplementedException();
- }
- }
- }
|