PropParamClr.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. #pragma once
  2. #include "PropItemClr.h"
  3. #include "PropParam.h"
  4. #include "PartSTDDataClr.h"
  5. #include "PartSizeFileClr.h"
  6. #include "OTSParticleClr.h"
  7. namespace OTSINTERFACE {
  8. using namespace System;
  9. using namespace System::Collections::Generic;
  10. using namespace OTSDATA;
  11. typedef System::Collections::Generic::List<String^> CStringListClr;
  12. public ref class CPropParamClr
  13. {
  14. public:
  15. CPropParamClr(int a_nType);
  16. CPropParamClr(CPropParamPtr);
  17. !CPropParamClr();
  18. ~CPropParamClr();
  19. CPropParamPtr GetPropParamPtr();
  20. // type
  21. int GetType();
  22. void SetType(int a_nType);
  23. // property items list
  24. List<CPropItemClr^>^ GetPropItemsList();
  25. virtual bool SetPropertyItems();
  26. // data source id
  27. List<String^>^ GetDataSourceList();
  28. bool SetDataSourceList(List<String^>^ a_listDataSource);
  29. int GetDataSourceId();
  30. bool SetDataSourceId(int a_nDataSourceId);
  31. // data source type
  32. int GetDataSourceType();
  33. bool SetDataSourceType(int a_nDataSourceType);
  34. COTSParticleListClr^ GetSelectParticle();
  35. bool SetSelectParticle(COTSParticleListClr^ a_listSelectParticle);
  36. // image type
  37. int GetImageType();
  38. bool SetImageType(int a_nImageType);
  39. // image display type
  40. int GetImageDisplayType();
  41. bool SetImageDisplayType(int a_nImageDisplayType);
  42. // measure data type
  43. int GetMeasureDataType();
  44. bool SetMeasureDataType(int a_nMeasureDataType);
  45. // calculate table type
  46. int GetCalTableType();
  47. bool SetCalTableType(int a_nCalTableType);
  48. // calculate chart type
  49. int GetCalChartType();
  50. bool SetCalChartType(int a_nCalChartType);
  51. // particle type
  52. int GetPartType();
  53. bool SetPartType(int a_nPartType);
  54. // STD index
  55. CPartSTDDataClr^ GetWorkingSTDLib();
  56. bool SetWorkingSTDLib(CPartSTDDataClr^ a_pWorkingSTDLib);
  57. int GetSTDId();
  58. bool SetSTDId(int a_nSTDId);
  59. bool GetPartSizeFileList(int % a_nPos, List<String^>^% a_listPartSizeName);
  60. // size class id
  61. CPartSizeFileClr^ GetWorkingSizeClass();
  62. bool SetWorkingSizeClass(CPartSizeFileClr^ a_pWorkingSizeClass);
  63. int GetSizeClassId();
  64. bool SetSizeClassId(int a_nSizeClassId);
  65. // grain size min
  66. double GetGrainSizeMin();
  67. bool SetGrainSizeMin(double a_dGrainSizeMin);
  68. // grain size max
  69. double GetGrainSizeMax();
  70. bool SetGrainSizeMax(double a_dGrainSizeMax);
  71. // size calculation method type
  72. int GetSizeCalMethodType();
  73. bool SetSizeCalMethodType(int a_nSizeCalMethodType);
  74. // trio chart name
  75. String^ GetTrioChartName();
  76. bool SetTrioChartName(String^ a_strTrioChartName);
  77. BOOL SetTrioChartType(int a_TrioChartType);
  78. BOOL GetTrioChartType();
  79. // combo data
  80. //获取Combo类型的数值
  81. // 输入:int :属性在属性组内id Combo 返回的获取值
  82. // 输出: 获取结果, bool, true:成功,false:失败
  83. bool GetPropComboData(int a_nId, int% a_nValue);
  84. //设定属性值
  85. // 输入:int,属性id ;string,需要设定的值
  86. // 输出:bool,设定结果,true,成功,false, 失败
  87. bool SetPropComboData(int a_nId, int a_nValue);
  88. //获取Combo字符串类型
  89. // 输入:int,属性id,List<string> 返回的字符串
  90. // 输出:bool,设定结果,true,成功,false, 失败
  91. bool GetPropComboStrings(int a_nId, CStringListClr^% a_listComboStrings);
  92. // double data
  93. // double data (4)
  94. //获取double类型的数值
  95. // 输入:int :属性在属性组内id double 返回的获取值
  96. // 输出: 获取结果, bool, true:成功,false:失败
  97. bool GetPropDoubleData(int a_nId, double% a_dValue);
  98. //设定属性值
  99. // 输入:int,属性id ;double,需要设定的值
  100. // 输出:bool,设定结果,true,成功,false, 失败
  101. bool SetPropDoubleData(int a_nId, double a_dValue);
  102. // string data (7)
  103. //获取string类型的数值
  104. // 输入:int :属性在属性组内id string 返回的获取值
  105. // 输出: 获取结果, bool, true:成功,false:失败
  106. bool GetPropStringData(int a_nId, String^% a_strValue);
  107. //设定属性值
  108. // 输入:int,属性id ;string,需要设定的值
  109. // 输出:bool,设定结果,true,成功,false, 失败
  110. bool SetPropStringData(int a_nId, String^ a_strValue);
  111. //获取相关属性值
  112. // 输入:int,属性id, int,返回相关属性值
  113. // 输出:bool,设定结果,true,成功,false,失败
  114. // get related property item
  115. bool GetRelatedPropItem(int a_nId, int% a_nRelatedPropId);
  116. // get related property item
  117. bool UpdateAll(int a_nId);
  118. String^ GetItemCurrentValueStr(OTS_RETORT_PROP_GRID_ITEMS a_nId);
  119. //the ternary phase diagram template.
  120. CString GetTopName();
  121. BOOL SetTopName(String^ a_TopName);
  122. CString GetLeftName();
  123. BOOL SetLeftName(String^ a_LeftName);
  124. CString GetRightName();
  125. BOOL SetRightName(String^ a_RightName);
  126. System::Collections::Generic::List<String^>^ GetTopElementName();
  127. BOOL SetTopElementName(System::Collections::Generic::List<String^>^ a_listTopElementName);
  128. System::Collections::Generic::List<String^>^ GetLeftElementName();
  129. BOOL SetLeftElementName(System::Collections::Generic::List<String^>^ a_listLeftElementName);
  130. System::Collections::Generic::List<String^>^ GetRightElementName();
  131. BOOL SetRightElementName(System::Collections::Generic::List<String^>^ a_listRightElementName);
  132. private:
  133. CPropParamPtr* m_LpPropParam;
  134. };
  135. }