Exemplo n.º 1
0
 //private _Statistics m_Statistics = null;
 ///// <summary>
 ///// 获取或设置:分部分项计算结果
 ///// </summary>
 //public _Statistics Statistics
 //{
 //    get { return m_Statistics; }
 //    set { m_Statistics = value; }
 //}
 public _ChapterInfo(_ProfessionalInfo p_Parent)
 {
     this.m_Parent       = p_Parent;
     this.m_FixedList    = new List <_FFixedListInfo>();
     this.m_FestivalList = new List <_FestivalInfo>();
     this.Statistics     = new _ChapterInfo_Statistics(this);
 }
Exemplo n.º 2
0
        ///// <summary>
        ///// 删除指定清单
        ///// </summary>
        ///// <param name="info"></param>
        //public void Remove(_FixedListInfo info)
        //{
        //    info.RemoveAll();//先删除清单下面存在的子目
        //    //this.m_FixedList.Remove(info);
        //}

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="info"></param>
        public void Remove(_ProfessionalInfo info)
        {
            foreach (_ChapterInfo item in info.ChapterList)
            {
                info.Remove(item);
            }
            this.ObjectsList.Remove(info);
            this.Activitie.BeginEdit(this);
        }
Exemplo n.º 3
0
        public override void Calculate()
        {
            _ProfessionalInfo info = this.Parent as _ProfessionalInfo;

            foreach (_ChapterInfo item in info.ChapterList)
            {
                item.Statistics.Calculate();
            }
            this.Begin();
        }
Exemplo n.º 4
0
        public _FixedListInfo Create(_FixedListInfo info, _FixedListInfo Index_info)
        {
            _ProfessionalInfo pro   = this.Methods.GetproByFixed(info);
            _ChapterInfo      cinfo = this.Methods.GetproByFixed(info, pro);
            _FestivalInfo     finfo = this.Methods.GetproByFixed(info, cinfo);

            finfo.Create(info, Index_info);
            this.ActionAttribute("Create", "清单", info, Index_info);
            this.Activitie.BeginEdit(this);
            return(info);
        }
Exemplo n.º 5
0
 public _ProfessionalInfo Create(_ProfessionalInfo info)
 {
     //info.Activitie = this.Activitie;
     info.Parent    = this;
     info.ID        = this.ObjectID;
     info.PARENTID  = this.ID;
     info.PPARENTID = this.ID;
     info.CPARENTID = this.ID;
     info.STATUS    = false;
     this.ObjectsList.Add(info);
     info.STATUS = true;
     return(info);
 }
Exemplo n.º 6
0
        /// <summary>
        /// 根据清单获取专业
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        public _ProfessionalInfo GetproByFixed(_FixedListInfo info)
        {
            _ProfessionalInfo pro = null;

            if (info.ZJWZ == "")
            {
                info.ZJWZ = "999999";
            }
            string zjwj = info.ZJWZ.Substring(0, 2);
            IEnumerable <_ObjectInfo> infos = from item in this.Parent.ObjectsList.Cast <_ObjectInfo>()
                                              where item.XMBM == zjwj
                                              select item;

            if (infos.Count() > 0)
            {
                pro = infos.First <_ObjectInfo>() as _ProfessionalInfo;
            }
            if (pro != null)
            {
                return(pro);
            }
            else
            {
                _ProfessionalInfo pinfo = new _ProfessionalInfo(this.Parent);
                DataRow           row   = GetQDSY(info.LibraryName, zjwj);
                if (row != null)
                {
                    pinfo.XMBM = row["QINGDSYBH"].ToString();
                    pinfo.XMMC = row["MULNR"].ToString();
                    pinfo.LB   = "分部-专业";
                    pinfo.GCL  = 0.0m;
                    // pinfo.Sort = this.Parent.GetSortByType(pinfo.GetType()) + 1;
                }
                else
                {
                    pinfo.XMBM = "99";
                    pinfo.XMMC = "补充专业";
                    pinfo.LB   = "分部-专业";
                    pinfo.GCL  = 0.0m;
                    // pinfo.Sort = this.Parent.GetSortByType(pinfo.GetType()) + 1;
                }
                this.Parent.Create(pinfo);
                return(pinfo);
            }
        }
Exemplo n.º 7
0
        private void SetHJ()
        {
            _ProfessionalInfo info = this.Parent as _ProfessionalInfo;

            if (info != null)
            {
                m_ResultValue = new Result();

                foreach (_ChapterInfo item in info.ChapterList)
                {
                    //所有的合价累计
                    m_ResultValue.DEZHHJ  += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_DEZHHJ);
                    m_ResultValue.DEZJFHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_DEZJFHJ);
                    m_ResultValue.DERGFHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_DERGFHJ);
                    m_ResultValue.DECLFHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_DECLFHJ);
                    m_ResultValue.DEZCFHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_DEZCFHJ);
                    m_ResultValue.DESBFHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_DESBFHJ);
                    m_ResultValue.DEJXFHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_DEJXFHJ);
                    m_ResultValue.DEGLFHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_DEGLFHJ);
                    m_ResultValue.DELRHJ  += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_DELRHJ);
                    m_ResultValue.DEFXHJ  += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_DEFXHJ);

                    m_ResultValue.DEJGJEHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_DEJGJEHJ);
                    m_ResultValue.DEYGJEHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_DEYGJEHJ);
                    m_ResultValue.DEPBZDHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_DEPBZDHJ);
                    m_ResultValue.DEZGHJ   += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_DEZGHJ);
                    m_ResultValue.DEFBJEHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_DEFBJEHJ);


                    m_ResultValue.ZHHJ  += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_ZHHJ);
                    m_ResultValue.ZJFHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_ZJFHJ);
                    m_ResultValue.RGFHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_RGFHJ);
                    m_ResultValue.CLFHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_CLFHJ);
                    m_ResultValue.ZCFHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_ZCFHJ);
                    m_ResultValue.SBFHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_SBFHJ);
                    m_ResultValue.JXFHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_JXFHJ);
                    m_ResultValue.GLFHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_GLFHJ);
                    m_ResultValue.LRHJ  += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_LRHJ);
                    m_ResultValue.FXHJ  += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_FXHJ);

                    m_ResultValue.JGJEHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_JGJEHJ);
                    m_ResultValue.YGJEHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_YGJEHJ);
                    m_ResultValue.PBZDHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_PBZDHJ);
                    m_ResultValue.ZGHJ   += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_ZGHJ);
                    m_ResultValue.FBJEHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_FBJEHJ);


                    m_ResultValue.JCHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_JCHJ);
                    m_ResultValue.CJHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_CJHJ);


                    //m_ResultValue.HHJXRGF += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_HHJXRGF);
                    //m_ResultValue.HHJXRGFJC += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_HHJXRGFJC);
                    //m_ResultValue.DEHHJXRGF += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_DEHHJXRGF);


                    m_ResultValue.FBFXCJHJ   += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_FBFXCJHJ);
                    m_ResultValue.FBFXJCHJ   += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_FBFXJCHJ);
                    m_ResultValue.FBFXRGJCHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_FBFXRGJCHJ);
                    m_ResultValue.FBFXCLJCHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_FBFXCLJCHJ);
                    m_ResultValue.FBFXJXJCHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_FBFXJXJCHJ);

                    m_ResultValue.FBFXRGCJHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_FBFXRGCJHJ);
                    m_ResultValue.FBFXCLCJHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_FBFXCLCJHJ);
                    m_ResultValue.FBFXJXCJHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_FBFXJXCJHJ);


                    m_ResultValue.DEGFHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_DEGFHJ);
                    m_ResultValue.GFHJ   += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_GFHJ);
                    m_ResultValue.DESJHJ += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_DESJHJ);
                    m_ResultValue.SJHJ   += item.Statistics.ResultVarable.GetDecimal(_Statistics.FILED_SJHJ);
                }
            }
        }