public override void SetData(CLDC_DataCore.Model.DnbModel.DnbGroupInfo MeterGroup, bool allowedit) { int intFirstMeter = MeterGroup.GetFirstYaoJianMeterBwh(); if (MeterGroup.MeterGroup[intFirstMeter].MeterFunctions.Count == 0) { return; } Dgw_Data.Rows.Clear(); for (int i = 0; i < MeterGroup._Bws; i++) { foreach (string _Key in MeterGroup.MeterGroup[i].MeterFunctions.Keys) { CLDC_DataCore.Model.DnbModel.DnbInfo.MeterFunction _Function = MeterGroup.MeterGroup[i].MeterFunctions[_Key]; if (_Function.Mf_PrjID.Length == 3) //大ID { int rowIndex = Dgw_Data.Rows.Add(); Dgw_Data["表位", rowIndex].Value = MeterGroup.MeterGroup[i].ToString(); Dgw_Data["项目名称", rowIndex].Value = _Function.Mf_PrjName; Dgw_Data["项目结论", rowIndex].Value = " " + _Function.Mf_chrValue; } } } SpanRow(0, Dgw_Data.Rows.Count, 0); base.SetData(MeterGroup, allowedit); }
public override void SetData(CLDC_DataCore.Model.DnbModel.DnbInfo.MeterBasicInfo MeterInfo, bool allowedit) { if (MeterInfo.MeterFunctions.Count == 0) { return; } Dgw_Data.Rows.Clear(); foreach (string _Key in MeterInfo.MeterFunctions.Keys) { CLDC_DataCore.Model.DnbModel.DnbInfo.MeterFunction _Function = MeterInfo.MeterFunctions[_Key]; if (_Function.Mf_PrjID.Length == 3) //大ID { int rowIndex = Dgw_Data.Rows.Add(); Dgw_Data["表位", rowIndex].Value = MeterInfo.ToString(); Dgw_Data["项目名称", rowIndex].Value = _Function.Mf_PrjName; Dgw_Data["项目结论", rowIndex].Value = " " + _Function.Mf_chrValue; } } base.SetData(MeterInfo, allowedit); }