|
@@ -1,6 +1,7 @@
|
|
|
using OTSCLRINTERFACE;
|
|
|
using OTSIncAReportApp.OTSSampleReportInfo;
|
|
|
using OTSIncAReportApp.SysMgrTools;
|
|
|
+using OTSModelSharp.ResourceManage;
|
|
|
using System;
|
|
|
using System.Collections;
|
|
|
using System.Collections.Generic;
|
|
@@ -199,18 +200,53 @@ namespace OTSIncAReportApp.OTSDataMgrFunction
|
|
|
/// <summary>
|
|
|
/// 界面显示Grid
|
|
|
/// </summary>
|
|
|
- private void NewGridData(OTS_REPORT_PROP_GRID_ITEMS iItemId,string sSCaptionName,OTS_ITEM_TYPES iItemValType,bool bReadOnly,string sDescriptionInfo,object itemVal,List<string> comboDownList)
|
|
|
+ /// <param name="tbindex"></param>
|
|
|
+ /// <param name="iItemId"></param>
|
|
|
+ /// <param name="number"></param>
|
|
|
+ /// <param name="iItemValType"></param>
|
|
|
+ /// <param name="bReadOnly"></param>
|
|
|
+ /// <param name="itemVal"></param>
|
|
|
+ /// <param name="comboDownList"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ private SampleData 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);
|
|
|
SampleData sampleData = new SampleData();
|
|
|
sampleData.iItemId = iItemId;
|
|
|
- sampleData.sSCaptionName = sSCaptionName;
|
|
|
+ sampleData.sSCaptionName = text;
|
|
|
sampleData.iItemValType = iItemValType;
|
|
|
sampleData.bReadOnly = bReadOnly;
|
|
|
- sampleData.sDescriptionInfo = sDescriptionInfo;
|
|
|
- sampleData.itemVal = itemVal;
|
|
|
- sampleData.comboDownList = comboDownList;
|
|
|
+ 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>
|
|
|
/// 从报告程序的xml文档中读取数据并生成list<datatabl>表格
|
|
@@ -305,307 +341,68 @@ namespace OTSIncAReportApp.OTSDataMgrFunction
|
|
|
private List<SampleData> GetSourceGridData(int tbindex)
|
|
|
{
|
|
|
|
|
|
- OTSDataType.XmlResourceData.GetInstance().GetGroupTextByKey(0);
|
|
|
-
|
|
|
List<SampleData> list = new List<SampleData>();
|
|
|
if (tbindex == 0)//分布图页
|
|
|
{
|
|
|
//测量结果数据
|
|
|
List<string> list_source_str = GetSampleListName();
|
|
|
- NewGridData(0, table["sscaptionname1"].ToString(), OTS_ITEM_TYPES.COMBO, false, "Select Measurement Result", list_source_str[m_ReportApp.WorkingResult], list_source_str);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- ////测量结果数据
|
|
|
- //List<string> list_source_str = GetSampleListName();
|
|
|
- //string sSCaptionName1 = table["sscaptionname1"].ToString();
|
|
|
-
|
|
|
- //SampleData sampleData = new SampleData();
|
|
|
- //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_ReportApp.WorkingResult];
|
|
|
- //sampleData.comboDownList = list_source_str;
|
|
|
- //list.Add(sampleData);
|
|
|
- //string sSCaptionName2 = table["sscaptionname2"].ToString();
|
|
|
- //string sSCaptionName13 = table["sscaptionname13"].ToString();
|
|
|
-
|
|
|
-
|
|
|
- SampleData sampleData1 = new SampleData();
|
|
|
- sampleData1.iItemId = OTS_REPORT_PROP_GRID_ITEMS.IMAGE_TYPE;
|
|
|
- sampleData1.sSCaptionName = table["sscaptionname2"].ToString();//测量图类型
|
|
|
- sampleData1.iItemValType = OTS_ITEM_TYPES.COMBO;
|
|
|
- sampleData1.bReadOnly = false;
|
|
|
- sampleData1.sDescriptionInfo = "Survey Chart Type";
|
|
|
- sampleData1.itemVal = "BSE";
|
|
|
- sampleData1.comboDownList = new List<string>() { "BSE", table["sscaptionname13"].ToString(), "Original", "原图颗粒分布"};//bse,颗粒分类图
|
|
|
- list.Add(sampleData1);
|
|
|
-
|
|
|
- //测量图类型
|
|
|
- List<string> list_datasourcetypelist = GetDataSourceTypeList();
|
|
|
- string sSCaptionName3 = table["sscaptionname3"].ToString();
|
|
|
- string sscaptionname14 = table["sscaptionname14"].ToString();
|
|
|
- string sscaptionname15 = table["sscaptionname15"].ToString();
|
|
|
- List<string> list1 = new List<string>() { sscaptionname14, sscaptionname15 };
|
|
|
- SampleData sampleData2 = new SampleData();
|
|
|
- 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.Add(NewGridData(tbindex, 0, ResourceID.Measurement_Result_Data_0, OTS_ITEM_TYPES.COMBO, false, list_source_str[m_ReportApp.WorkingResult], list_source_str));
|
|
|
+ //测量图类型 bse,颗粒分类图
|
|
|
+ list.Add(NewGridData(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 };
|
|
|
- SampleData sampleData3 = new SampleData();
|
|
|
- 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(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(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 = GetPartSizeFileList();//从系统默认的路径中查找出所有的粒级表文件
|
|
|
- SampleData sampleData_partsizefile = new SampleData();
|
|
|
- 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.Add(NewGridData(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();
|
|
|
- SampleData sampleData4 = new SampleData();
|
|
|
- List<string> sizeList = new List<string>();
|
|
|
- sizeList = 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 = GetPartSizeList();//获取粒级后额外增加全部,自定义,选项
|
|
|
+ sizeList.Insert(0, OTSDataType.XmlResourceData.GetInstance().GetStringByKey(tbindex, ResourceID.All_0));//全部
|
|
|
+ sizeList.Insert(1, OTSDataType.XmlResourceData.GetInstance().GetStringByKey(tbindex, ResourceID.custom_0));//自定义
|
|
|
+ list.Add(NewGridData(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();
|
|
|
- SampleData sampleData41 = new SampleData();
|
|
|
- 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(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();
|
|
|
- SampleData sampleData42 = new SampleData();
|
|
|
- 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(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 };
|
|
|
- SampleData sampleData6 = new SampleData();
|
|
|
- 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(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();
|
|
|
- SampleData sampleData5 = new SampleData();
|
|
|
- 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 = GetSizeCalMethodTypeList();
|
|
|
- list.Add(sampleData5);
|
|
|
+ list.Add(NewGridData(tbindex, OTS_REPORT_PROP_GRID_ITEMS.SIZE_CAL_METHOD_TYPE, ResourceID.Dimension_Calculation_Method_0, OTS_ITEM_TYPES.COMBO, false, GetSizeCalMethodTypeList()[0], GetSizeCalMethodTypeList()));
|
|
|
}
|
|
|
else if (tbindex == 1)//Grid表格页
|
|
|
{
|
|
|
//测量结果数据
|
|
|
List<string> list_source_str = GetSampleListName();
|
|
|
- string sSCaptionName1 = table["sscaptionname1"].ToString();
|
|
|
- SampleData sampleData = new SampleData();
|
|
|
- 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_ReportApp.WorkingResult];
|
|
|
- sampleData.comboDownList = list_source_str;
|
|
|
- list.Add(sampleData);
|
|
|
-
|
|
|
+ list.Add(NewGridData(tbindex, 0, ResourceID.Measurement_Result_Data_1, OTS_ITEM_TYPES.COMBO, false, list_source_str[m_ReportApp.WorkingResult], list_source_str));
|
|
|
//数据类型
|
|
|
List<string> list_datasourcetypelist = GetDataSourceTypeList();
|
|
|
- string sSCaptionName9 = table["sscaptionname9"].ToString();
|
|
|
- SampleData sampleData1 = new SampleData();
|
|
|
- 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('-');
|
|
|
- if(aa[aa.Count()-1]== " Inclusion Analysis System")
|
|
|
- {
|
|
|
- List<string> listStd = new List<string>() {"国标一", "国标二", "美标", "德标" };
|
|
|
- list2.AddRange(listStd);
|
|
|
- }
|
|
|
- SampleData sampleData3 = new SampleData();
|
|
|
- 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.Add(NewGridData(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(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 = GetPartSizeFileList();//从系统默认的路径中查找出所有的粒级表文件
|
|
|
- SampleData sampleData_partsizefile = new SampleData();
|
|
|
- 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.Add(NewGridData(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();
|
|
|
- SampleData sampleData13 = new SampleData();
|
|
|
- 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 = GetSizeCalMethodTypeList();
|
|
|
- list.Add(sampleData13);
|
|
|
+ list.Add(NewGridData(tbindex, OTS_REPORT_PROP_GRID_ITEMS.SIZE_CAL_METHOD_TYPE, ResourceID.Dimension_Calculation_Method_1, OTS_ITEM_TYPES.COMBO, false, GetSizeCalMethodTypeList()[0], GetSizeCalMethodTypeList()));
|
|
|
}
|
|
|
else if (tbindex == 2)//Chart图页
|
|
|
{
|
|
|
//测量结果数据
|
|
|
List<string> list_source_str = GetSampleListName();
|
|
|
- string sSCaptionName1 = table["sscaptionname1"].ToString();
|
|
|
- SampleData sampleData = new SampleData();
|
|
|
- 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_ReportApp.WorkingResult];
|
|
|
- sampleData.comboDownList = list_source_str;
|
|
|
- list.Add(sampleData);
|
|
|
-
|
|
|
+ list.Add(NewGridData(tbindex, 0, ResourceID.Measurement_Result_Data_2, OTS_ITEM_TYPES.COMBO, false, list_source_str[m_ReportApp.WorkingResult], list_source_str));
|
|
|
//数据类型
|
|
|
List<string> list_datasourcetypelist = GetDataSourceTypeList();
|
|
|
- string sSCaptionName9 = table["sscaptionname9"].ToString();
|
|
|
- SampleData sampleData1 = new SampleData();
|
|
|
- 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.Add(NewGridData(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() };
|
|
|
- SampleData sampleData3 = new SampleData();
|
|
|
- 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(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();
|
|
|
- SampleData sampleData15 = new SampleData();
|
|
|
List<string> trio_listname = 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.Add(NewGridData(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 = GetPartSizeFileList();
|
|
|
- SampleData sampleData_partsizefile = new SampleData();
|
|
|
- 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.Add(NewGridData(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();
|
|
|
- SampleData sampleData13 = new SampleData();
|
|
|
- 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 = GetSizeCalMethodTypeList();
|
|
|
- list.Add(sampleData13);
|
|
|
+ list.Add(NewGridData(tbindex, OTS_REPORT_PROP_GRID_ITEMS.SIZE_CAL_METHOD_TYPE, ResourceID.Dimension_Calculation_Method_2, OTS_ITEM_TYPES.COMBO, false, GetSizeCalMethodTypeList().First(), GetSizeCalMethodTypeList()));
|
|
|
}
|
|
|
|
|
|
return list;
|