| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- #pragma once
- #include "PropItemClr.h"
- #include "PropParam.h"
- #include "PartSTDDataClr.h"
- #include "PartSizeFileClr.h"
- #include "OTSParticleClr.h"
- namespace OTSINTERFACE {
- using namespace System;
- using namespace System::Collections::Generic;
- using namespace OTSDATA;
- typedef System::Collections::Generic::List<String^> CStringListClr;
- public ref class CPropParamClr
- {
- public:
- CPropParamClr(int a_nType);
- CPropParamClr(CPropParamPtr);
- !CPropParamClr();
- ~CPropParamClr();
- CPropParamPtr GetPropParamPtr();
- // type
- int GetType();
- void SetType(int a_nType);
- // property items list
- List<CPropItemClr^>^ GetPropItemsList();
- virtual bool SetPropertyItems();
- // data source id
- List<String^>^ GetDataSourceList();
- bool SetDataSourceList(List<String^>^ a_listDataSource);
- int GetDataSourceId();
- bool SetDataSourceId(int a_nDataSourceId);
- // data source type
- int GetDataSourceType();
- bool SetDataSourceType(int a_nDataSourceType);
-
- COTSParticleListClr^ GetSelectParticle();
- bool SetSelectParticle(COTSParticleListClr^ a_listSelectParticle);
- // image type
- int GetImageType();
- bool SetImageType(int a_nImageType);
- // image display type
- int GetImageDisplayType();
- bool SetImageDisplayType(int a_nImageDisplayType);
- // measure data type
- int GetMeasureDataType();
- bool SetMeasureDataType(int a_nMeasureDataType);
- // calculate table type
- int GetCalTableType();
- bool SetCalTableType(int a_nCalTableType);
- // calculate chart type
- int GetCalChartType();
- bool SetCalChartType(int a_nCalChartType);
- // particle type
- int GetPartType();
- bool SetPartType(int a_nPartType);
- // STD index
- CPartSTDDataClr^ GetWorkingSTDLib();
- bool SetWorkingSTDLib(CPartSTDDataClr^ a_pWorkingSTDLib);
- int GetSTDId();
- bool SetSTDId(int a_nSTDId);
- bool GetPartSizeFileList(int % a_nPos, List<String^>^% a_listPartSizeName);
- // size class id
- CPartSizeFileClr^ GetWorkingSizeClass();
- bool SetWorkingSizeClass(CPartSizeFileClr^ a_pWorkingSizeClass);
- int GetSizeClassId();
- bool SetSizeClassId(int a_nSizeClassId);
- // grain size min
- double GetGrainSizeMin();
- bool SetGrainSizeMin(double a_dGrainSizeMin);
- // grain size max
- double GetGrainSizeMax();
- bool SetGrainSizeMax(double a_dGrainSizeMax);
- // size calculation method type
- int GetSizeCalMethodType();
- bool SetSizeCalMethodType(int a_nSizeCalMethodType);
- // trio chart name
- String^ GetTrioChartName();
- bool SetTrioChartName(String^ a_strTrioChartName);
- BOOL SetTrioChartType(int a_TrioChartType);
- BOOL GetTrioChartType();
- // combo data
- //获取Combo类型的数值
- // 输入:int :属性在属性组内id Combo 返回的获取值
- // 输出: 获取结果, bool, true:成功,false:失败
- bool GetPropComboData(int a_nId, int% a_nValue);
- //设定属性值
- // 输入:int,属性id ;string,需要设定的值
- // 输出:bool,设定结果,true,成功,false, 失败
- bool SetPropComboData(int a_nId, int a_nValue);
- //获取Combo字符串类型
- // 输入:int,属性id,List<string> 返回的字符串
- // 输出:bool,设定结果,true,成功,false, 失败
- bool GetPropComboStrings(int a_nId, CStringListClr^% a_listComboStrings);
- // double data
- // double data (4)
- //获取double类型的数值
- // 输入:int :属性在属性组内id double 返回的获取值
- // 输出: 获取结果, bool, true:成功,false:失败
- bool GetPropDoubleData(int a_nId, double% a_dValue);
- //设定属性值
- // 输入:int,属性id ;double,需要设定的值
- // 输出:bool,设定结果,true,成功,false, 失败
- bool SetPropDoubleData(int a_nId, double a_dValue);
- // string data (7)
- //获取string类型的数值
- // 输入:int :属性在属性组内id string 返回的获取值
- // 输出: 获取结果, bool, true:成功,false:失败
- bool GetPropStringData(int a_nId, String^% a_strValue);
- //设定属性值
- // 输入:int,属性id ;string,需要设定的值
- // 输出:bool,设定结果,true,成功,false, 失败
- bool SetPropStringData(int a_nId, String^ a_strValue);
- //获取相关属性值
- // 输入:int,属性id, int,返回相关属性值
- // 输出:bool,设定结果,true,成功,false,失败
- // get related property item
- bool GetRelatedPropItem(int a_nId, int% a_nRelatedPropId);
-
- // get related property item
- bool UpdateAll(int a_nId);
- String^ GetItemCurrentValueStr(OTS_RETORT_PROP_GRID_ITEMS a_nId);
-
- //the ternary phase diagram template.
- CString GetTopName();
- BOOL SetTopName(String^ a_TopName);
- CString GetLeftName();
- BOOL SetLeftName(String^ a_LeftName);
- CString GetRightName();
- BOOL SetRightName(String^ a_RightName);
- System::Collections::Generic::List<String^>^ GetTopElementName();
- BOOL SetTopElementName(System::Collections::Generic::List<String^>^ a_listTopElementName);
- System::Collections::Generic::List<String^>^ GetLeftElementName();
- BOOL SetLeftElementName(System::Collections::Generic::List<String^>^ a_listLeftElementName);
- System::Collections::Generic::List<String^>^ GetRightElementName();
- BOOL SetRightElementName(System::Collections::Generic::List<String^>^ a_listRightElementName);
- private:
- CPropParamPtr* m_LpPropParam;
-
- };
-
- }
|