CNAS取数仪器端升级
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

65 řádky
2.0KB

  1. using CnasLocalIDAL;
  2. using CnasSynchronousCommon;
  3. using CnasSynchrousModel;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Data;
  7. using System.Linq;
  8. using System.Text;
  9. namespace SyncLocalDAL
  10. {
  11. public class InstrumentInfoDAL : LocalDBbase, IInstrument
  12. {
  13. public DataTable GetAllInstrumentInfosToDT()
  14. {
  15. throw new NotImplementedException();
  16. }
  17. public DataTable GetInstrumentInfosByTypeToDT(string strType)
  18. {
  19. throw new NotImplementedException();
  20. }
  21. public List<SyncInstrumentItemInfo> GetAllInstruments()
  22. {
  23. List<SyncInstrumentItemInfo> lstSyncInstrument = new List<SyncInstrumentItemInfo>();
  24. try
  25. {
  26. //读取本地文件中存储的配置信息
  27. System.Xml.Serialization.XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer(lstSyncInstrument.GetType());
  28. System.IO.FileStream stream = new System.IO.FileStream(FileHelper.getBasePath() + "/Data/SyncInStrumentData.xml", System.IO.FileMode.Open);
  29. lstSyncInstrument = (List<SyncInstrumentItemInfo>)serializer.Deserialize(stream);
  30. stream.Close();
  31. }
  32. catch (Exception ex)
  33. {
  34. AppLog.Error(ex.Message);
  35. throw ex;
  36. }
  37. return lstSyncInstrument;
  38. }
  39. public List<SyncInstrumentItemInfo> GetInstrumentsByType(string strType)
  40. {
  41. throw new NotImplementedException();
  42. }
  43. public int InsertInstrumentInfo(SyncInstrumentItemInfo instrument)
  44. {
  45. throw new NotImplementedException();
  46. }
  47. public int UpdateInstrumentInfo(SyncInstrumentItemInfo instrument)
  48. {
  49. throw new NotImplementedException();
  50. }
  51. public int DeleteInstrumentInfo(SyncInstrumentItemInfo instrument)
  52. {
  53. throw new NotImplementedException();
  54. }
  55. }
  56. }