|
@@ -4,6 +4,7 @@ using OTSIncAReportApp.OTSSampleReportInfo;
|
|
|
using OTSIncAReportApp.SysMgrTools;
|
|
|
using OTSIncAReportGB;
|
|
|
using OTSIncAReportGrids;
|
|
|
+using OTSModelSharp.ResourceManage;
|
|
|
using System;
|
|
|
using System.Collections;
|
|
|
using System.Collections.Generic;
|
|
@@ -187,6 +188,49 @@ namespace OTSIncAReportApp
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ private ConditionItem NewGridData(int tbindex, OTS_REPORT_PROP_GRID_ITEMS iItemId, int number, OTS_ITEM_TYPES iItemValType, bool bReadOnly, object itemVal, List<string> comboDownList)
|
|
|
+ {
|
|
|
+ string text = "";
|
|
|
+ string des = "";
|
|
|
+ string downlist = "";
|
|
|
+ OTSDataType.XmlResourceData.GetInstance().GetStringByKey(tbindex, number, ref text, ref des, ref downlist);
|
|
|
+ ConditionItem sampleData = new ConditionItem();
|
|
|
+ sampleData.iItemId = iItemId;
|
|
|
+ sampleData.sSCaptionName = text;
|
|
|
+ sampleData.iItemValType = iItemValType;
|
|
|
+ sampleData.bReadOnly = bReadOnly;
|
|
|
+ sampleData.sDescriptionInfo = des;
|
|
|
+
|
|
|
+ if (comboDownList.Count == 0)
|
|
|
+ {
|
|
|
+ List<string> liststr = new List<string>();
|
|
|
+ if (downlist != "")
|
|
|
+ {
|
|
|
+ string[] arrTemp = downlist.Split(',');
|
|
|
+ for (int i = 0; i < arrTemp.Count(); i++)
|
|
|
+ {
|
|
|
+ liststr.Add(arrTemp[i]);
|
|
|
+ }
|
|
|
+ sampleData.itemVal = liststr[0];
|
|
|
+ sampleData.comboDownList = liststr;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ sampleData.itemVal = "0";
|
|
|
+ sampleData.comboDownList = liststr;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ sampleData.itemVal = itemVal;
|
|
|
+ sampleData.comboDownList = comboDownList;
|
|
|
+ }
|
|
|
+
|
|
|
+ return sampleData;
|
|
|
+ }
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 初始化加载sourceGrid各项
|
|
|
/// </summary>
|
|
@@ -198,300 +242,69 @@ namespace OTSIncAReportApp
|
|
|
if (tbindex == DisplayPicutureType.AnalyzeImg)//分布图页
|
|
|
{
|
|
|
//测量结果数据
|
|
|
- List<string> list_source_str =m_DataMgr. GetSampleListName();
|
|
|
- string sSCaptionName1 = table["sscaptionname1"].ToString();
|
|
|
- ConditionItem sampleData = new ConditionItem();
|
|
|
- sampleData.iItemId = 0;
|
|
|
- sampleData.sSCaptionName = sSCaptionName1;
|
|
|
- sampleData.iItemValType = OTS_ITEM_TYPES.COMBO;
|
|
|
- sampleData.bReadOnly = false;
|
|
|
- sampleData.sDescriptionInfo = "Select Measurement Result";
|
|
|
- sampleData.itemVal = list_source_str[m_DataMgr. WorkingResult];
|
|
|
- sampleData.comboDownList = list_source_str;
|
|
|
- list.Add(sampleData);
|
|
|
- string sSCaptionName2 = table["sscaptionname2"].ToString();
|
|
|
- string sSCaptionName13 = table["sscaptionname13"].ToString();
|
|
|
- ConditionItem sampleData1 = new ConditionItem();
|
|
|
- sampleData1.iItemId = OTS_REPORT_PROP_GRID_ITEMS.IMAGE_TYPE;
|
|
|
- sampleData1.sSCaptionName = sSCaptionName2;//测量图类型
|
|
|
- sampleData1.iItemValType = OTS_ITEM_TYPES.COMBO;
|
|
|
- sampleData1.bReadOnly = false;
|
|
|
- sampleData1.sDescriptionInfo = "Survey Chart Type";
|
|
|
- sampleData1.itemVal = "BSE";
|
|
|
- sampleData1.comboDownList = new List<string>() { "BSE", sSCaptionName13, "Original", "原图颗粒分布" };//bse,颗粒分类图
|
|
|
- list.Add(sampleData1);
|
|
|
-
|
|
|
- //测量图类型
|
|
|
- List<string> list_datasourcetypelist =m_DataMgr. GetDataSourceTypeList();
|
|
|
- string sSCaptionName3 = table["sscaptionname3"].ToString();
|
|
|
- string sscaptionname14 = table["sscaptionname14"].ToString();
|
|
|
- string sscaptionname15 = table["sscaptionname15"].ToString();
|
|
|
- List<string> list1 = new List<string>() { sscaptionname14, sscaptionname15 };
|
|
|
- ConditionItem sampleData2 = new ConditionItem();
|
|
|
- sampleData2.iItemId = OTS_REPORT_PROP_GRID_ITEMS.IMAGE_DISPLAY_TYPE;
|
|
|
- sampleData2.sSCaptionName = sSCaptionName3;
|
|
|
- sampleData2.iItemValType = OTS_ITEM_TYPES.COMBO;
|
|
|
- sampleData2.bReadOnly = false;
|
|
|
- sampleData2.sDescriptionInfo = "chart display mode";
|
|
|
- sampleData2.itemVal = list1[0];
|
|
|
- sampleData2.comboDownList = list1;
|
|
|
- list.Add(sampleData2);
|
|
|
-
|
|
|
+ List<string> list_source_str = m_DataMgr.GetSampleListName();
|
|
|
+ list.Add(NewGridData((int)tbindex, 0, ResourceID.Measurement_Result_Data_0, OTS_ITEM_TYPES.COMBO, false, list_source_str[m_DataMgr.WorkingResult], list_source_str));
|
|
|
+ //测量图类型 bse,颗粒分类图
|
|
|
+ list.Add(NewGridData((int)tbindex, OTS_REPORT_PROP_GRID_ITEMS.IMAGE_TYPE, ResourceID.Type_Of_Survey_Drawing_0, OTS_ITEM_TYPES.COMBO, false, "", new List<string>() { }));
|
|
|
//测量图显示方式
|
|
|
- string sSCaptionName4 = table["sscaptionname4"].ToString();
|
|
|
- string sscaptionname16 = table["sscaptionname16"].ToString();
|
|
|
- string sscaptionname17 = table["sscaptionname17"].ToString();
|
|
|
- List<string> list2 = new List<string>() { sscaptionname16, sscaptionname17 };
|
|
|
- ConditionItem sampleData3 = new ConditionItem();
|
|
|
- sampleData3.iItemId = OTS_REPORT_PROP_GRID_ITEMS.PARTICLE_TYPE;
|
|
|
- sampleData3.sSCaptionName = sSCaptionName4;
|
|
|
- sampleData3.iItemValType = OTS_ITEM_TYPES.COMBO;
|
|
|
- sampleData3.bReadOnly = false;
|
|
|
- sampleData3.sDescriptionInfo = "Particle Type";
|
|
|
- sampleData3.itemVal = list2[0];
|
|
|
- sampleData3.comboDownList = list2;
|
|
|
- list.Add(sampleData3);
|
|
|
-
|
|
|
-
|
|
|
+ list.Add(NewGridData((int)tbindex, OTS_REPORT_PROP_GRID_ITEMS.IMAGE_DISPLAY_TYPE, ResourceID.Display_mode_Of_Measurement_Diagram_0, OTS_ITEM_TYPES.COMBO, false, "", new List<string>() { }));
|
|
|
+ //颗粒类型
|
|
|
+ list.Add(NewGridData((int)tbindex, OTS_REPORT_PROP_GRID_ITEMS.PARTICLE_TYPE, ResourceID.Particle_Type_0, OTS_ITEM_TYPES.COMBO, false, "", new List<string>() { }));
|
|
|
//粒级表
|
|
|
- string sSCaptionName_partsizefile = "粒级表";
|
|
|
- List<string> list_partsizelist =m_DataMgr. GetPartSizeFileList();//从系统默认的路径中查找出所有的粒级表文件
|
|
|
- ConditionItem sampleData_partsizefile = new ConditionItem();
|
|
|
- sampleData_partsizefile.iItemId = OTS_REPORT_PROP_GRID_ITEMS.GRAIN_SIZE_CLASS_TABLE;
|
|
|
- sampleData_partsizefile.sSCaptionName = sSCaptionName_partsizefile;
|
|
|
- sampleData_partsizefile.iItemValType = OTS_ITEM_TYPES.COMBO;
|
|
|
- sampleData_partsizefile.bReadOnly = false;
|
|
|
- sampleData_partsizefile.sDescriptionInfo = "Particle Table";
|
|
|
- sampleData_partsizefile.itemVal = list_partsizelist[0];
|
|
|
- sampleData_partsizefile.comboDownList = list_partsizelist;
|
|
|
- list.Add(sampleData_partsizefile);
|
|
|
-
|
|
|
+ List<string> list_partsizelist = m_DataMgr.GetPartSizeFileList();//从系统默认的路径中查找出所有的粒级表文件
|
|
|
+ list.Add(NewGridData((int)tbindex, OTS_REPORT_PROP_GRID_ITEMS.GRAIN_SIZE_CLASS_TABLE, ResourceID.Particle_Size_Table_0, OTS_ITEM_TYPES.COMBO, false, list_partsizelist[0], list_partsizelist));
|
|
|
//粒级
|
|
|
- string sscaptionname18 = table["sscaptionname18"].ToString();
|
|
|
- ConditionItem sampleData4 = new ConditionItem();
|
|
|
- List<string> sizeList = new List<string>();
|
|
|
- sizeList =m_DataMgr. GetPartSizeList();//获取粒级后额外增加全部,自定义,选项
|
|
|
- sizeList.Insert(0, sscaptionname16);//全部
|
|
|
- sizeList.Insert(1, sscaptionname18);//自定义
|
|
|
-
|
|
|
- string sSCaptionName5 = table["sscaptionname5"].ToString();
|
|
|
- sampleData4.iItemId = OTS_REPORT_PROP_GRID_ITEMS.GRAIN_SIZE_CLASS;
|
|
|
- sampleData4.sSCaptionName = sSCaptionName5;
|
|
|
- sampleData4.iItemValType = OTS_ITEM_TYPES.COMBO;
|
|
|
- sampleData4.bReadOnly = false;
|
|
|
- sampleData4.sDescriptionInfo = "Grain Size";
|
|
|
- sampleData4.itemVal = sscaptionname16;
|
|
|
- sampleData4.comboDownList = sizeList;
|
|
|
- list.Add(sampleData4);
|
|
|
-
|
|
|
+ List<string> sizeList = m_DataMgr.GetPartSizeList();//获取粒级后额外增加全部,自定义,选项
|
|
|
+ sizeList.Insert(0, OTSDataType.XmlResourceData.GetInstance().GetStringByKey((int)tbindex, ResourceID.All_0));//全部
|
|
|
+ sizeList.Insert(1, OTSDataType.XmlResourceData.GetInstance().GetStringByKey((int)tbindex, ResourceID.custom_0));//自定义
|
|
|
+ list.Add(NewGridData((int)tbindex, OTS_REPORT_PROP_GRID_ITEMS.GRAIN_SIZE_CLASS, ResourceID.Particle_Size_0, OTS_ITEM_TYPES.COMBO, false, sizeList[0], sizeList));
|
|
|
//自定义最小
|
|
|
- string sSCaptionName6 = table["sscaptionname6"].ToString();
|
|
|
- ConditionItem sampleData41 = new ConditionItem();
|
|
|
- sampleData41.iItemId = OTS_REPORT_PROP_GRID_ITEMS.GRAIN_SIZE_MIN;
|
|
|
- sampleData41.sSCaptionName = sSCaptionName6;
|
|
|
- sampleData41.iItemValType = OTS_ITEM_TYPES.DOUBLE;
|
|
|
- sampleData41.bReadOnly = false;
|
|
|
- sampleData41.sDescriptionInfo = "Smallest Particle";
|
|
|
- sampleData41.itemVal = "0";
|
|
|
- list.Add(sampleData41);
|
|
|
-
|
|
|
+ list.Add(NewGridData((int)tbindex, OTS_REPORT_PROP_GRID_ITEMS.GRAIN_SIZE_MIN, ResourceID.Minimum_Particle_0, OTS_ITEM_TYPES.DOUBLE, false, "0", new List<string> { }));
|
|
|
//自定义最大
|
|
|
- string sSCaptionName7 = table["sscaptionname7"].ToString();
|
|
|
- ConditionItem sampleData42 = new ConditionItem();
|
|
|
- sampleData42.iItemId = OTS_REPORT_PROP_GRID_ITEMS.GRAIN_SIZE_MAX;
|
|
|
- sampleData42.sSCaptionName = sSCaptionName7;
|
|
|
- sampleData42.iItemValType = OTS_ITEM_TYPES.DOUBLE;
|
|
|
- sampleData42.bReadOnly = false;
|
|
|
- sampleData42.sDescriptionInfo = "Maximum Particle";
|
|
|
- sampleData42.itemVal = "0";
|
|
|
- list.Add(sampleData42);
|
|
|
-
|
|
|
+ list.Add(NewGridData((int)tbindex, OTS_REPORT_PROP_GRID_ITEMS.GRAIN_SIZE_MAX, ResourceID.Maximum_Particle_0, OTS_ITEM_TYPES.DOUBLE, false, "0", new List<string> { }));
|
|
|
//测量数据
|
|
|
- string sSCaptionName22 = table["sscaptionname22"].ToString();
|
|
|
- string sSCaptionName19 = table["sscaptionname19"].ToString();
|
|
|
- string sSCaptionName20 = table["sscaptionname20"].ToString();
|
|
|
- string sSCaptionName21 = table["sscaptionname21"].ToString();
|
|
|
- List<string> list3 = new List<string>() { sSCaptionName19, sSCaptionName20, sSCaptionName21 };
|
|
|
- ConditionItem sampleData6 = new ConditionItem();
|
|
|
- sampleData6.iItemId = OTS_REPORT_PROP_GRID_ITEMS.MEASURE_DATA_TYPE;
|
|
|
- sampleData6.sSCaptionName = sSCaptionName22;
|
|
|
- sampleData6.iItemValType = OTS_ITEM_TYPES.COMBO;
|
|
|
- sampleData6.bReadOnly = false;
|
|
|
- sampleData6.sDescriptionInfo = "Measured Data";
|
|
|
- sampleData6.itemVal = list3[0];
|
|
|
- sampleData6.comboDownList = list3;
|
|
|
- list.Add(sampleData6);
|
|
|
-
|
|
|
+ list.Add(NewGridData((int)tbindex, OTS_REPORT_PROP_GRID_ITEMS.MEASURE_DATA_TYPE, ResourceID.measured_Data_0, OTS_ITEM_TYPES.COMBO, false, "", new List<string> { }));
|
|
|
//计算方式
|
|
|
- string sSCaptionName8 = table["sscaptionname8"].ToString();
|
|
|
- ConditionItem sampleData5 = new ConditionItem();
|
|
|
- sampleData5.iItemId = OTS_REPORT_PROP_GRID_ITEMS.SIZE_CAL_METHOD_TYPE;
|
|
|
- sampleData5.sSCaptionName = sSCaptionName8;
|
|
|
- sampleData5.iItemValType = OTS_ITEM_TYPES.COMBO;
|
|
|
- sampleData5.bReadOnly = false;
|
|
|
- sampleData5.sDescriptionInfo = "Dimension calculation method";
|
|
|
- sampleData5.itemVal = "DMAX";
|
|
|
- sampleData5.comboDownList =m_DataMgr. GetSizeCalMethodTypeList();
|
|
|
- list.Add(sampleData5);
|
|
|
+ list.Add(NewGridData((int)tbindex, OTS_REPORT_PROP_GRID_ITEMS.SIZE_CAL_METHOD_TYPE, ResourceID.Dimension_Calculation_Method_0, OTS_ITEM_TYPES.COMBO, false, m_DataMgr.GetSizeCalMethodTypeList()[0], m_DataMgr.GetSizeCalMethodTypeList()));
|
|
|
}
|
|
|
else if (tbindex == DisplayPicutureType.AnalyzeDataTable)//Grid表格页
|
|
|
{
|
|
|
//测量结果数据
|
|
|
- List<string> list_source_str =m_DataMgr. GetSampleListName();
|
|
|
- string sSCaptionName1 = table["sscaptionname1"].ToString();
|
|
|
- ConditionItem sampleData = new ConditionItem();
|
|
|
- sampleData.iItemId = 0;
|
|
|
- sampleData.sSCaptionName = sSCaptionName1;
|
|
|
- sampleData.iItemValType = OTS_ITEM_TYPES.COMBO;
|
|
|
- sampleData.bReadOnly = false;
|
|
|
- sampleData.sDescriptionInfo = "Select Measurement Result";
|
|
|
- sampleData.itemVal = list_source_str[m_DataMgr. WorkingResult];
|
|
|
- sampleData.comboDownList = list_source_str;
|
|
|
- list.Add(sampleData);
|
|
|
-
|
|
|
+ List<string> list_source_str = m_DataMgr.GetSampleListName();
|
|
|
+ list.Add(NewGridData((int)tbindex, 0, ResourceID.Measurement_Result_Data_1, OTS_ITEM_TYPES.COMBO, false, list_source_str[m_DataMgr.WorkingResult], list_source_str));
|
|
|
//数据类型
|
|
|
- List<string> list_datasourcetypelist =m_DataMgr. GetDataSourceTypeList();
|
|
|
- string sSCaptionName9 = table["sscaptionname9"].ToString();
|
|
|
- ConditionItem sampleData1 = new ConditionItem();
|
|
|
- sampleData1.iItemId = OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE;
|
|
|
- sampleData1.sSCaptionName = sSCaptionName9;
|
|
|
- sampleData1.iItemValType = OTS_ITEM_TYPES.COMBO;
|
|
|
- sampleData1.bReadOnly = false;
|
|
|
- sampleData1.sDescriptionInfo = "Data Type";
|
|
|
- sampleData1.itemVal = list_datasourcetypelist[0];
|
|
|
- sampleData1.comboDownList = list_datasourcetypelist;
|
|
|
- list.Add(sampleData1);
|
|
|
-
|
|
|
- //数据表类型
|
|
|
- string sSCaptionName10 = table["sscaptionname10"].ToString();
|
|
|
- List<string> list2 = new List<string>() { table["sscaptionname25"].ToString(), table["sscaptionname26"].ToString(), table["sscaptionname27"].ToString(), table["sscaptionname28"].ToString(), table["sscaptionname29"].ToString(), table["sscaptionname30"].ToString() };
|
|
|
- string[] aa = m_ReportApp.Text.Split('-');
|
|
|
- List<string> listStd = new List<string>() { "国标一", "国标二", "美标", "德标" };
|
|
|
- list2.AddRange(listStd);
|
|
|
- ConditionItem sampleData3 = new ConditionItem();
|
|
|
- sampleData3.iItemId = OTS_REPORT_PROP_GRID_ITEMS.CALCULATE_TABLE_TYPE;
|
|
|
- sampleData3.sSCaptionName = sSCaptionName10;
|
|
|
- sampleData3.iItemValType = OTS_ITEM_TYPES.COMBO;
|
|
|
- sampleData3.bReadOnly = false;
|
|
|
- sampleData3.sDescriptionInfo = "Data table type";
|
|
|
- sampleData3.itemVal = list2[0];
|
|
|
- sampleData3.comboDownList = list2;
|
|
|
- list.Add(sampleData3);
|
|
|
-
|
|
|
+ List<string> list_datasourcetypelist = m_DataMgr.GetDataSourceTypeList();
|
|
|
+ list.Add(NewGridData((int)tbindex, OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE, ResourceID.data_type_1, OTS_ITEM_TYPES.COMBO, false, list_datasourcetypelist[0], list_datasourcetypelist));
|
|
|
+ list.Add(NewGridData((int)tbindex, OTS_REPORT_PROP_GRID_ITEMS.CALCULATE_TABLE_TYPE, ResourceID.Data_Table_Type_1, OTS_ITEM_TYPES.COMBO, false, "", new List<string> { }));
|
|
|
//粒级表
|
|
|
- string sSCaptionName_partsizefile = "粒级表";
|
|
|
- List<string> list_partsizelist =m_DataMgr. GetPartSizeFileList();//从系统默认的路径中查找出所有的粒级表文件
|
|
|
- ConditionItem sampleData_partsizefile = new ConditionItem();
|
|
|
- sampleData_partsizefile.iItemId = OTS_REPORT_PROP_GRID_ITEMS.GRAIN_SIZE_CLASS_TABLE;
|
|
|
- sampleData_partsizefile.sSCaptionName = sSCaptionName_partsizefile;
|
|
|
- sampleData_partsizefile.iItemValType = OTS_ITEM_TYPES.COMBO;
|
|
|
- sampleData_partsizefile.bReadOnly = false;
|
|
|
- sampleData_partsizefile.sDescriptionInfo = "Particle Table";
|
|
|
- sampleData_partsizefile.itemVal = list_partsizelist[0];
|
|
|
- sampleData_partsizefile.comboDownList = list_partsizelist;
|
|
|
- list.Add(sampleData_partsizefile);
|
|
|
-
|
|
|
+ List<string> list_partsizelist = m_DataMgr.GetPartSizeFileList();//从系统默认的路径中查找出所有的粒级表文件
|
|
|
+ list.Add(NewGridData((int)tbindex, OTS_REPORT_PROP_GRID_ITEMS.GRAIN_SIZE_CLASS_TABLE, ResourceID.Particle_Size_Table_1, OTS_ITEM_TYPES.COMBO, false, list_partsizelist[0], list_partsizelist));
|
|
|
//尺寸计算方法
|
|
|
- string sSCaptionName8 = table["sscaptionname8"].ToString();
|
|
|
- ConditionItem sampleData13 = new ConditionItem();
|
|
|
- sampleData13.iItemId = OTS_REPORT_PROP_GRID_ITEMS.SIZE_CAL_METHOD_TYPE;
|
|
|
- sampleData13.sSCaptionName = sSCaptionName8;
|
|
|
- sampleData13.iItemValType = OTS_ITEM_TYPES.COMBO;
|
|
|
- sampleData13.bReadOnly = false;
|
|
|
- sampleData13.sDescriptionInfo = "Dimension Calculation Method";
|
|
|
- sampleData13.itemVal = "DMAX";
|
|
|
- sampleData13.comboDownList =m_DataMgr. GetSizeCalMethodTypeList();
|
|
|
- list.Add(sampleData13);
|
|
|
+ list.Add(NewGridData((int)tbindex, OTS_REPORT_PROP_GRID_ITEMS.SIZE_CAL_METHOD_TYPE, ResourceID.Dimension_Calculation_Method_1, OTS_ITEM_TYPES.COMBO, false, m_DataMgr.GetSizeCalMethodTypeList()[0], m_DataMgr.GetSizeCalMethodTypeList()));
|
|
|
}
|
|
|
else if (tbindex == DisplayPicutureType.AnalyzeDataChart)//Chart图页
|
|
|
{
|
|
|
//测量结果数据
|
|
|
- List<string> list_source_str =m_DataMgr. GetSampleListName();
|
|
|
- string sSCaptionName1 = table["sscaptionname1"].ToString();
|
|
|
- ConditionItem sampleData = new ConditionItem();
|
|
|
- sampleData.iItemId = 0;
|
|
|
- sampleData.sSCaptionName = sSCaptionName1;
|
|
|
- sampleData.iItemValType = OTS_ITEM_TYPES.COMBO;
|
|
|
- sampleData.bReadOnly = false;
|
|
|
- sampleData.sDescriptionInfo = "Select Measurement Result";
|
|
|
- sampleData.itemVal = list_source_str[m_DataMgr. WorkingResult];
|
|
|
- sampleData.comboDownList = list_source_str;
|
|
|
- list.Add(sampleData);
|
|
|
-
|
|
|
+ List<string> list_source_str = m_DataMgr.GetSampleListName();
|
|
|
+ list.Add(NewGridData((int)tbindex, 0, ResourceID.Measurement_Result_Data_2, OTS_ITEM_TYPES.COMBO, false, list_source_str[m_DataMgr.WorkingResult], list_source_str));
|
|
|
//数据类型
|
|
|
- List<string> list_datasourcetypelist =m_DataMgr. GetDataSourceTypeList();
|
|
|
- string sSCaptionName9 = table["sscaptionname9"].ToString();
|
|
|
- ConditionItem sampleData1 = new ConditionItem();
|
|
|
- sampleData1.iItemId = OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE;
|
|
|
- sampleData1.sSCaptionName = sSCaptionName9;
|
|
|
- sampleData1.iItemValType = OTS_ITEM_TYPES.COMBO;
|
|
|
- sampleData1.bReadOnly = false;
|
|
|
- sampleData1.sDescriptionInfo = "Data Type";
|
|
|
- sampleData1.itemVal = list_datasourcetypelist[0];
|
|
|
- sampleData1.comboDownList = list_datasourcetypelist;
|
|
|
- list.Add(sampleData1);
|
|
|
-
|
|
|
+ List<string> list_datasourcetypelist = m_DataMgr.GetDataSourceTypeList();
|
|
|
+ list.Add(NewGridData((int)tbindex, OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE, ResourceID.data_type_2, OTS_ITEM_TYPES.COMBO, false, list_datasourcetypelist[0], list_datasourcetypelist));
|
|
|
//数据图类型
|
|
|
- string sSCaptionName10 = table["sscaptionname10"].ToString();
|
|
|
- List<string> list2 = new List<string>() { "常用夹杂物分类", table["sscaptionname27"].ToString(), table["sscaptionname28"].ToString(), table["sscaptionname29"].ToString(), table["sscaptionname12"].ToString() };
|
|
|
- ConditionItem sampleData3 = new ConditionItem();
|
|
|
- sampleData3.iItemId = OTS_REPORT_PROP_GRID_ITEMS.CALCULATE_CHART_TYPE;
|
|
|
- sampleData3.sSCaptionName = sSCaptionName10;
|
|
|
- sampleData3.iItemValType = OTS_ITEM_TYPES.COMBO;
|
|
|
- sampleData3.bReadOnly = false;
|
|
|
- sampleData3.sDescriptionInfo = "Data graph type";
|
|
|
- sampleData3.itemVal = list2[0];
|
|
|
- sampleData3.comboDownList = list2;
|
|
|
- list.Add(sampleData3);
|
|
|
-
|
|
|
+ list.Add(NewGridData((int)tbindex, OTS_REPORT_PROP_GRID_ITEMS.CALCULATE_CHART_TYPE, ResourceID.Data_Table_Type_2, OTS_ITEM_TYPES.COMBO, false, "", new List<string> { }));
|
|
|
//三元相图模板
|
|
|
- string sSCaptionName12 = table["sscaptionname12"].ToString();
|
|
|
- ConditionItem sampleData15 = new ConditionItem();
|
|
|
- List<string> trio_listname =m_DataMgr. GetTriTemplateNameList();
|
|
|
- sampleData15.iItemId = OTS_REPORT_PROP_GRID_ITEMS.TRIO_CHART_TYPE;
|
|
|
- sampleData15.sSCaptionName = sSCaptionName12;
|
|
|
- sampleData15.iItemValType = OTS_ITEM_TYPES.COMBO;
|
|
|
- sampleData15.bReadOnly = false;
|
|
|
- sampleData15.sDescriptionInfo = "Ternary phase diagram";
|
|
|
- sampleData15.itemVal = trio_listname.First();
|
|
|
- sampleData15.comboDownList = trio_listname;
|
|
|
- list.Add(sampleData15);
|
|
|
-
|
|
|
+ List<string> trio_listname = m_DataMgr.GetTriTemplateNameList();
|
|
|
+ list.Add(NewGridData((int)tbindex, OTS_REPORT_PROP_GRID_ITEMS.TRIO_CHART_TYPE, ResourceID.Ternary_Phase_Diagram_2, OTS_ITEM_TYPES.COMBO, false, trio_listname.First(), trio_listname));
|
|
|
//粒级表
|
|
|
- string sSCaptionName_partsizefile = "粒级表";
|
|
|
- List<string> list_partsizelist =m_DataMgr. GetPartSizeFileList();
|
|
|
- ConditionItem sampleData_partsizefile = new ConditionItem();
|
|
|
- sampleData_partsizefile.iItemId = OTS_REPORT_PROP_GRID_ITEMS.GRAIN_SIZE_CLASS_TABLE;
|
|
|
- sampleData_partsizefile.sSCaptionName = sSCaptionName_partsizefile;
|
|
|
- sampleData_partsizefile.iItemValType = OTS_ITEM_TYPES.COMBO;
|
|
|
- sampleData_partsizefile.bReadOnly = false;
|
|
|
- sampleData_partsizefile.sDescriptionInfo = "Particle Table";
|
|
|
- sampleData_partsizefile.itemVal = list_partsizelist[0];
|
|
|
- sampleData_partsizefile.comboDownList = list_partsizelist;
|
|
|
- list.Add(sampleData_partsizefile);
|
|
|
-
|
|
|
+ List<string> list_partsizelist = m_DataMgr.GetPartSizeFileList();
|
|
|
+ list.Add(NewGridData((int)tbindex, OTS_REPORT_PROP_GRID_ITEMS.GRAIN_SIZE_CLASS_TABLE, ResourceID.Particle_Size_Table_2, OTS_ITEM_TYPES.COMBO, false, list_partsizelist[0], list_partsizelist));
|
|
|
//尺寸计算法
|
|
|
- string sSCaptionName8 = table["sscaptionname8"].ToString();
|
|
|
- ConditionItem sampleData13 = new ConditionItem();
|
|
|
- sampleData13.iItemId = OTS_REPORT_PROP_GRID_ITEMS.SIZE_CAL_METHOD_TYPE;
|
|
|
- sampleData13.sSCaptionName = sSCaptionName8;
|
|
|
- sampleData13.iItemValType = OTS_ITEM_TYPES.COMBO;
|
|
|
- sampleData13.bReadOnly = false;
|
|
|
- sampleData13.sDescriptionInfo = "Dimension Calculation Method";
|
|
|
- sampleData13.itemVal = "DMAX";
|
|
|
- sampleData13.comboDownList =m_DataMgr. GetSizeCalMethodTypeList();
|
|
|
- list.Add(sampleData13);
|
|
|
+ list.Add(NewGridData((int)tbindex, OTS_REPORT_PROP_GRID_ITEMS.SIZE_CAL_METHOD_TYPE, ResourceID.Dimension_Calculation_Method_2, OTS_ITEM_TYPES.COMBO, false, m_DataMgr.GetSizeCalMethodTypeList().First(), m_DataMgr.GetSizeCalMethodTypeList()));
|
|
|
}
|
|
|
|
|
|
return list;
|
|
|
}
|
|
|
- //public List<string> GetDataSourceTypeList()
|
|
|
- //{
|
|
|
- // string sscaptionname23 = table["sscaptionname23"].ToString();
|
|
|
- // string sscaptionname24 = table["sscaptionname24"].ToString();
|
|
|
- // List<string> ret_list = new List<string>() { sscaptionname23, sscaptionname24 };
|
|
|
- // return ret_list;
|
|
|
- //}
|
|
|
+
|
|
|
|
|
|
|
|
|
/// <summary>
|