예제 #1
0
 public override void SetData(CLDC_DataCore.Model.DnbModel.DnbGroupInfo MeterGroup, bool allowedit)
 {
     if (MeterGroup.MeterGroup.Count == 0)
     {
         return;
     }
     Dgw_Data.Rows.Clear();
     for (int i = 0; i < MeterGroup._Bws; i++)
     {
         if (!MeterGroup.MeterGroup[i].YaoJianYn)
         {
             continue;
         }
         foreach (string _Key in MeterGroup.MeterGroup[i].MeterCarrierDatas.Keys)
         {
             CLDC_DataCore.Model.DnbModel.DnbInfo.MeterCarrierData _Carrier = MeterGroup.MeterGroup[i].MeterCarrierDatas[_Key];
             if (_Carrier.Mce_PrjID.Length > 0)         //大ID
             {
                 int rowIndex = Dgw_Data.Rows.Add();
                 Dgw_Data["表位", rowIndex].Value   = MeterGroup.MeterGroup[i].ToString();
                 Dgw_Data["项目名称", rowIndex].Value = _Carrier.Mce_PrjName;
                 Dgw_Data["数据", rowIndex].Value   = _Carrier.Mce_PrjValue;
                 Dgw_Data["结论", rowIndex].Value   = "    " + _Carrier.Mce_ItemResult;
             }
         }
     }
     SpanRow(0, Dgw_Data.Rows.Count, 0);
     base.SetData(MeterGroup, allowedit);
 }
예제 #2
0
        public override void SetData(CLDC_DataCore.Model.DnbModel.DnbInfo.MeterBasicInfo MeterInfo, bool allowedit)
        {
            if (MeterInfo.MeterCarrierDatas.Count == 0)
            {
                return;
            }
            Dgw_Data.Rows.Clear();

            foreach (string _Key in MeterInfo.MeterCarrierDatas.Keys)
            {
                CLDC_DataCore.Model.DnbModel.DnbInfo.MeterCarrierData _Carrier = MeterInfo.MeterCarrierDatas[_Key];
                if (_Carrier.Mce_PrjID.Length > 0)         //大ID
                {
                    Dgw_Data.Rows.Add(MeterInfo.ToString(), _Carrier.Mce_PrjName, _Carrier.Mce_PrjValue, _Carrier.Mce_ItemResult);
                }
            }

            base.SetData(MeterInfo, allowedit);
        }