コード例 #1
0
ファイル: _Project_Statistics.cs プロジェクト: shansheng/QDJJ
        /// <summary>
        /// 当前参数信息
        /// </summary>
        /// <param name="p_Table"></param>
        public void ConvertToDisplay(CAttributes p_Table)
        {
            int key = p_Table.Add(-1, "单位工程结果参数");

            //要添加的属性节点
            foreach (DataRow row in this.ResultVarable.DataSource.Rows)
            {
                p_Table.Add(key, row["Key"].ToString(), row["Value"]);
            }
        }
コード例 #2
0
ファイル: _Pro_Attr.cs プロジェクト: shansheng/QDJJ
        /// <summary>
        /// 项目的属性转换接口实现
        /// </summary>
        /// <param name="p_Table"></param>
        public void ConvertToDisplay(CAttributes p_Table)
        {
            //项目属性
            int key = p_Table.Add(-1, "项目信息");

            p_Table.Add(key, "项目名称", this.Parent.Name, "Name", this.Parent);
            p_Table.Add(key, "项目编号", this.Parent.CODE, "CODE", this.Parent);
            p_Table.Add(key, "工程地点", this.Parent.PGCDD, "PGCDD", this.Parent);
            p_Table.Add(key, "纳税地点", this.Parent.PNSDD, "PNSDD", this.Parent);
            p_Table.Add(key, "计费程序", this.Parent.PJFCX, "PJFCX", this.Parent);
            p_Table.Add(key, "清单规则", this.Parent.QDGZ, "QDGZ", this.Parent);
            p_Table.Add(key, "定额规则", this.Parent.DEGZ, "DEGZ", this.Parent);
            //单项工程统计

            //key = p_Table.Add(-1, "单项工程统计");
            object EnCount = this.Parent.StructSource.ModelProject.Compute("COUNT(ID)", "DEEP = 1");
            object UnCount = this.Parent.StructSource.ModelProject.Compute("count(ID)", "DEEP = 2");

            p_Table.Add(key, "单项工程", EnCount);
            p_Table.Add(key, "单位工程", UnCount);
        }
コード例 #3
0
        /// <summary>
        /// 项目的属性转换接口实现
        /// </summary>
        /// <param name="p_Table"></param>
        public void ConvertToDisplay(CAttributes p_Table)
        {
            int key = p_Table.Add(-1, "项目信息");

            p_Table.Add(key, "项目名称", this.Parent.Name, "Name", this.Parent);
            p_Table.Add(key, "项目编号", this.Parent.CODE, "CODE", this.Parent);
            p_Table.Add(key, "工程地点", this.Parent.PGCDD, "PGCDD", this.Parent);
            p_Table.Add(key, "纳税地点", this.Parent.PNSDD, "PNSDD", this.Parent);
            p_Table.Add(key, "计费程序", this.Parent.PJFCX, "PJFCX", this.Parent);
        }
コード例 #4
0
        /// <summary>
        /// 项目的属性转换接口实现
        /// </summary>
        /// <param name="p_Table"></param>
        public void ConvertToDisplay(CAttributes p_Table)
        {
            //不显示基础类型信息
            //base.ConvertToDisplay(p_Table);
            int key = p_Table.Add(-1, "单位工程");

            p_Table.Add(key, "项目名称", this.Parent.Name, "Name", this.Parent);
            p_Table.Add(key, "工程编号", this.Parent.CODE, "CODE", this.Parent);
            p_Table.Add(key, "编制人资格证号", this.Parent.PlaitNo, "PlaitNo", this.Parent);
            p_Table.Add(key, "编制人", this.Parent.PlaitName, "PlaitName", this.Parent);
            p_Table.Add(key, "复核人", this.Parent.ReviewName, "ReviewName", this.Parent);
            p_Table.Add(key, "编制日期", this.Parent.PlaitDate, "PlaitDate", this.Parent);
            p_Table.Add(key, "复核日期", this.Parent.ReviewDate, "ReviewDate", this.Parent);
            p_Table.Add(key, "清单规则", this.Parent.QDGZ, "QDGZ", this.Parent);
            p_Table.Add(key, "清单名称", this.Parent.QDLibName, "QDLibName", this.Parent);
            p_Table.Add(key, "定额规则", this.Parent.DEGZ, "DEGZ", this.Parent);
            p_Table.Add(key, "定额名称", this.Parent.DELibName, "DELibName", this.Parent);
            p_Table.Add(key, "图集库", this.Parent.TJLibName, "LibName", this.Parent);
            p_Table.Add(key, "专业类别", this.Parent.PrfType, "PrfType", this.Parent);
        }