示例#1
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);
        }
示例#2
0
        /// <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"]);
            }
        }
示例#3
0
        /// <summary>
        /// 回写处理
        /// </summary>
        /// <param name="p_Table"></param>
        /// <param name="e"></param>
        public void ChangeValue(CAttributes p_Table, System.Data.DataRowChangeEventArgs e)
        {
            object obj   = e.Row["Source"];               //源对象
            object value = e.Row["Value"];                //显示的值
            string filed = e.Row["FiledName"].ToString(); //源字段名称(表是字段名称/对象为对象的属性名称)
            object type  = e.Row["Type"];

            //在obj中找到字段进行处理
            System.Reflection.PropertyInfo info = obj.GetType().GetProperty(filed);
            info.SetValue(obj, value, null);
        }
示例#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);
        }
示例#5
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);
            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);
        }
示例#6
0
 public void ChangeValue(CAttributes p_Table, DataRowChangeEventArgs e)
 {
     throw new NotImplementedException();
 }