Пример #1
0
        /// <summary>
        /// 计算耗热量并将结果集传回
        /// </summary>
        /// <returns></returns>
        public WccResultSet CalcWccResultSet()
        {
            WccResultSet wccrSet = new WccResultSet();

            for (int i = 0; i < _wccwns.Count; i++)
            {
                WastingCaloricCalculatorWithName wccwn = _wccwns[i];

                string stname = wccwn.StationName;
                WccResultsCollection wccrs = new WccResultsCollection(stname);

                WastingCaloricCalculatorsCollection wccs = wccwn.WastingCaloricCalculatorsCollection;
                for (int j = 0; j < wccs.Count; j++)
                {
                    WastingCaloricCalculator wcc = wccs[j];
                    int      wc   = wcc.Calc();
                    DateTime date = wcc.Date;

                    WccResult wccr = new WccResult(date, wc);
                    wccrs.Add(wccr);
                }

                wccrSet.Add(wccrs);
            }
            return(wccrSet);
        }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="beginDate"></param>
 /// <param name="endDate"></param>
 /// <param name="wccrSet"></param>
 public WcExcelExporter(DateTime beginDate, DateTime endDate, WccResultSet wccrSet)
 {
     _beginDate = beginDate.Date;
     _endDate   = endDate.Date;
     _wccrSet   = wccrSet;
     MsgBox.Show("new wcexce;exporter");
 }