コード例 #1
0
ファイル: _Mothod_Measures.cs プロジェクト: shansheng/QDJJ
 private void CalculateKCAQWMCSF()
 {
     DataRow[] rows1 = this.Unit.StructSource.ModelMeasures.Select(string.Format("XMBM='{0}'", "C10101"), "", DataViewRowState.CurrentRows);
     if (rows1.Length > 0)
     {
         _Entity_SubInfo CSAQ = new _Entity_SubInfo();
         _ObjectSource.GetObject(CSAQ, rows1[0]);
         _Mothods_MFixed fix = new _Mothods_MFixed(null, this.Unit, CSAQ);
         fix.Begin(null);
         _Method_Metaanalysis method = new _Method_Metaanalysis(this.Unit);
         method.Calculate();
     }
 }
コード例 #2
0
ファイル: _Project_Statistics.cs プロジェクト: shansheng/QDJJ
        /// <summary>
        /// 計算最終結果
        /// </summary>
        private void CalculateResult()
        {
            var CSAQWM    = ToolKit.ParseDecimal(Variablies["CSAQWM"]);
            var KCAQWMCSF = ToolKit.ParseDecimal(Variablies["KCAQWMCSF"]);
            var CSXMHJ    = CSAQWM + KCAQWMCSF;

            var rows = this.Unit.StructSource.ModelMeasures.Select("XMBM = 'C101'");

            foreach (var row in rows)
            {
                _Methods.Build(Business, Unit, _Entity_SubInfo.Parse(row)).BeginCurrent();
            }

            rows = this.Unit.StructSource.ModelMeasures.Select("XMBM = '措施项目'");
            foreach (var row in rows)
            {
                _Methods.Build(Business, Unit, _Entity_SubInfo.Parse(row)).BeginCurrent();
            }

            var measureMethod = new _Mothod_Measures(this.Business, Unit, GetTop1MeasureItem());

            measureMethod.BeginCurrent();


            var metaanlysis = new _Method_Metaanalysis(Unit);

            metaanlysis.Calculate();


            this.UNResultVarable.Set(this.Unit.ID, -1, "CSXMHJ", CSXMHJ);
            this.UNResultVarable.Set(this.Unit.ID, -1, "CSXMF", CSXMHJ);

            this.ResultVarable.Set(this.Unit.ID, -1, "CSXMHJ", CSXMHJ);
            this.ResultVarable.Set(this.Unit.ID, -1, "CSXMF", CSXMHJ);

            //var otherStatistics = new _Method_OtherProject(this.Business, this.Unit);
            //otherStatistics.Begin();

            //var metaanalysis = new _Method_Metaanalysis(this.Unit);
            //metaanalysis.Begin(null);
        }
コード例 #3
0
ファイル: _Project_Statistics.cs プロジェクト: shansheng/QDJJ
        /// <summary>
        /// 单位工程计算
        /// </summary>
        public void Calculate()
        {
            this.Unit.IsCalculated = false;
            this.RestXH();
            //this.DeleteKong();
            _Methods method = null;

            method = new _Method_Sub(null, this.Unit, this.GetSub());
            method.Calculate();
            method = new _Mothod_Measures(null, this.Unit, this.GetTop1MeasureItem());
            method.Calculate();
            this.Begin();
            method = new _Method_OtherProject(null, this.Unit);
            method.Calculate();
            this.Begin();
            method = new _Method_Metaanalysis(this.Unit);
            method.Calculate();

            CalculateWithouSubsegment();
            this.Unit.NeedCalculate = true;
        }