| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- #pragma once
- #include "OTSImageProcess.h"
- #include "ReportProjFileMgr.h"
- #include "OTSReportProjFileClr.h"
- #include "PropParamClr.h"
- #include "SmplMsrResultFileMgrClr.h"
- #include "GridDataClr.h"
- #include "RptParamFileClr.h"
- namespace OTSINTERFACE {
- using namespace System::Collections::Generic;
- using namespace System;
- using namespace OTSMODEL;
- using namespace Newtonsoft::Json::Linq;
-
- public ref class COTSReportProjFileMgrClr : public Object
- {
- public:
- COTSReportProjFileMgrClr();
- COTSReportProjFileMgrClr(COTSReportProjFileClr^ a_pReportProjFile);
- COTSReportProjFileMgrClr(CReportProjFileMgrPtr);
-
- ~COTSReportProjFileMgrClr();
- !COTSReportProjFileMgrClr();
- JObject^ GetReportJSONProperty(int a_nPageIndex);
-
- CReportProjFileMgrPtr GetCReportProjFileMgrPtr();
- void SetSwitchForSmlResultFile(int nIndex,bool ifcheck);
- CPropParamClr^ GetCurrentPropParam();
- CPropParamClr^ GetPropertyParamImage();
- CPropParamClr^ GetPropertyParamTable();
- CPropParamClr^ GetPropertyParamChart();
- void SetSelectedPicture(int a_nType);
- bool NewFile();
- // Load
- bool Load(String^ a_strPathname);
- // Save
- bool Save();
- // Save as
- bool SaveAs();
- bool IsValid();
- // report project file file
- COTSReportProjFileClr^ GetReportProjFile();
- void SetReportProjFile(COTSReportProjFileClr^ a_pReportProjFile);
-
- // property parameters
- bool ResetPropertyParams(bool a_bClear);
- List<CPropParamClr^>^ GetPropertyParams();
- void SetPropertyParams(List<CPropParamClr^>^);
- // file modify flag
- bool IsModified();
- void SetModify(bool a_bModify);
- // path name
- String^ GetPathName();
- void SetPathName(String^ a_strPathName);
- // sample measure result files
- List<CSmplMsrResultFileMgrClr^>^ GetSmplMsrResultMgrs();
- bool AddASmplMsrResultMgr(String^ a_strPathName);
- CSmplMsrResultFileMgrClr^ GetASmplMsrResultMgrById(int a_nIndex);
- CSmplMsrResultFileMgrClr^ GetASmplMsrResultMgrByPathName(String^ a_strPathName);
- bool DeleteASmplMsrResultMgrById(int a_nIndex);
- bool DeleteASmplMsrResultMgrByPathName(String^ a_strPathName);
- // Get working sample
- CSmplMsrResultFileMgrClr^ GetWorkingSmplMsrReslMgr();
- String^ GetWorkingSampleName();
- bool SetWorkingSmplMsrReslMgr(CSmplMsrResultFileMgrClr^ a_pSmpMsr);
-
- // get the project file name
- String^ GetFileName();
- // working sample index
- int GetWorkingSampleIndex();
- void SetWorkingSampleIndex(int a_nWorkingSampleIndex);
- // grid computing
- CGridDataListClr^ GridDataTransfer();
- // re-classify
- bool ReClassify();
- bool GetNomiNateElChemsList(CElementChemistryListClr^ % a_listElChemsInc,
- CElementChemistryListClr^ % a_listNomiElChemsInc);
- bool IsHaveMultiDataSource();
- CRptParamFileClr^ GetRptParamFileClr();
- // ReZoom
- bool ReZoom(String^ a_strInPathName, String^ a_strOutPathName);
-
- private:
- CReportProjFileMgrPtr* m_pReportProjFileMgr;
- };
- }
|