Exemplo n.º 1
0
        /// <summary>
        /// 重新计算的时候清空数据
        /// </summary>
        public void ReLoad(ERevealType p_ERevealType)
        {
            this.Relations.Clear();

            if (p_ERevealType == ERevealType.Default)
            {
                this.ModelMetaanalysis.Clear();
                this.ModelMetaanalysis.IsCompled = true;
                this.ModelSubSegments.Clear();
                this.ModelSubSegments.IsCompled = true;
                this.ModelMeasures.Clear();
                this.ModelMeasures.IsCompled = true;
            }
            if (p_ERevealType == ERevealType.措施项目)
            {
                this.ModelMeasures.Clear();
                this.ModelMeasures.IsCompled = true;
            }
            if (p_ERevealType == ERevealType.分部分项)
            {
                this.ModelMeasures.Clear();
                this.ModelSubSegments.IsCompled = true;
            }
            if (p_ERevealType == ERevealType.汇总分析)
            {
                this.ModelMeasures.Clear();
                this.ModelMetaanalysis.IsCompled = true;
            }
            this.BuilderRelations();
        }
Exemplo n.º 2
0
 /// <summary>
 /// 获取指定的结果集
 /// </summary>
 /// <param name="p_LName"></param>
 /// <returns></returns>
 public _List Get(ERevealType p_ERevealType)
 {
     switch (p_ERevealType)
     {
         case ERevealType.汇总分析:
             return this.m_Result[0];
         case  ERevealType.分部分项:
             return this.m_Result[1];
         case ERevealType.措施项目:
             return this.m_Result[2];
         case ERevealType.项目工料机汇总:
             return this.m_Result[3];
         default:
             return null;
     }   
 }
Exemplo n.º 3
0
        /// <summary>
        /// 设置结果集合的值
        /// </summary>
        /// <param name="p_LName"></param>
        /// <param name="p_List"></param>
        public void Set(ERevealType p_ERevealType, _List p_List)
        {
            switch (p_ERevealType)
            {
                case ERevealType.汇总分析: 
                    this.m_Result[0] = p_List;
                    break;
                case ERevealType.分部分项:
                    this.m_Result[1] = p_List;
                    break;
                case ERevealType.措施项目:
                    this.m_Result[2] = p_List;
                    break;
                case ERevealType.项目工料机汇总:
                    this.m_Result[3] = p_List;
                    break;
                default:

                    break;
            }   
        }
Exemplo n.º 4
0
 public void Init(ERevealType p_ERevealType)
 {
     //1.汇总分析 2.分部分项 3.措施项目 4.项目工料机汇总
      switch (p_ERevealType)
         {
             case ERevealType.Default:
                 m_Result = new _List[4] { new _List(), new _List(), new _List(), new _List() };
                 break;
             case ERevealType.汇总分析:
                 m_Result[0] = new _List();
                 break;
          case ERevealType.分部分项:
                 m_Result[1] = new _List();
                 break;
          case ERevealType.措施项目:
                 m_Result[2] = new _List();
                 break;
          default:
                 break;
               
         }
 }