OTSReportProjFileMgrClr.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. #pragma once
  2. #include "OTSImageProcess.h"
  3. #include "ReportProjFileMgr.h"
  4. #include "OTSReportProjFileClr.h"
  5. #include "PropParamClr.h"
  6. #include "SmplMsrResultFileMgrClr.h"
  7. #include "GridDataClr.h"
  8. #include "RptParamFileClr.h"
  9. namespace OTSINTERFACE {
  10. using namespace System::Collections::Generic;
  11. using namespace System;
  12. using namespace OTSMODEL;
  13. using namespace Newtonsoft::Json::Linq;
  14. public ref class COTSReportProjFileMgrClr : public Object
  15. {
  16. public:
  17. COTSReportProjFileMgrClr();
  18. COTSReportProjFileMgrClr(COTSReportProjFileClr^ a_pReportProjFile);
  19. COTSReportProjFileMgrClr(CReportProjFileMgrPtr);
  20. ~COTSReportProjFileMgrClr();
  21. !COTSReportProjFileMgrClr();
  22. JObject^ GetReportJSONProperty(int a_nPageIndex);
  23. CReportProjFileMgrPtr GetCReportProjFileMgrPtr();
  24. void SetSwitchForSmlResultFile(int nIndex,bool ifcheck);
  25. CPropParamClr^ GetCurrentPropParam();
  26. CPropParamClr^ GetPropertyParamImage();
  27. CPropParamClr^ GetPropertyParamTable();
  28. CPropParamClr^ GetPropertyParamChart();
  29. void SetSelectedPicture(int a_nType);
  30. bool NewFile();
  31. // Load
  32. bool Load(String^ a_strPathname);
  33. // Save
  34. bool Save();
  35. // Save as
  36. bool SaveAs();
  37. bool IsValid();
  38. // report project file file
  39. COTSReportProjFileClr^ GetReportProjFile();
  40. void SetReportProjFile(COTSReportProjFileClr^ a_pReportProjFile);
  41. // property parameters
  42. bool ResetPropertyParams(bool a_bClear);
  43. List<CPropParamClr^>^ GetPropertyParams();
  44. void SetPropertyParams(List<CPropParamClr^>^);
  45. // file modify flag
  46. bool IsModified();
  47. void SetModify(bool a_bModify);
  48. // path name
  49. String^ GetPathName();
  50. void SetPathName(String^ a_strPathName);
  51. // sample measure result files
  52. List<CSmplMsrResultFileMgrClr^>^ GetSmplMsrResultMgrs();
  53. bool AddASmplMsrResultMgr(String^ a_strPathName);
  54. CSmplMsrResultFileMgrClr^ GetASmplMsrResultMgrById(int a_nIndex);
  55. CSmplMsrResultFileMgrClr^ GetASmplMsrResultMgrByPathName(String^ a_strPathName);
  56. bool DeleteASmplMsrResultMgrById(int a_nIndex);
  57. bool DeleteASmplMsrResultMgrByPathName(String^ a_strPathName);
  58. // Get working sample
  59. CSmplMsrResultFileMgrClr^ GetWorkingSmplMsrReslMgr();
  60. String^ GetWorkingSampleName();
  61. bool SetWorkingSmplMsrReslMgr(CSmplMsrResultFileMgrClr^ a_pSmpMsr);
  62. // get the project file name
  63. String^ GetFileName();
  64. // working sample index
  65. int GetWorkingSampleIndex();
  66. void SetWorkingSampleIndex(int a_nWorkingSampleIndex);
  67. // grid computing
  68. CGridDataListClr^ GridDataTransfer();
  69. // re-classify
  70. bool ReClassify();
  71. bool GetNomiNateElChemsList(CElementChemistryListClr^ % a_listElChemsInc,
  72. CElementChemistryListClr^ % a_listNomiElChemsInc);
  73. bool IsHaveMultiDataSource();
  74. CRptParamFileClr^ GetRptParamFileClr();
  75. // ReZoom
  76. bool ReZoom(String^ a_strInPathName, String^ a_strOutPathName);
  77. private:
  78. CReportProjFileMgrPtr* m_pReportProjFileMgr;
  79. };
  80. }