Esempio n. 1
0
        public override void Ready(_StructSource p_ds)
        {
            //this.StructSource = new _StructSource();
            //this.StructSource.UnitjBuilder();

            DataTable t = null;

            try
            {
                foreach (DataTable table in p_ds.Tables)
                {
                    t = table;
                    this.StructSource.Tables[table.TableName].Merge(table);
                }
            }
            catch (Exception e)
            {
                //Debug.Show(p_ds, t.TableName);
            }

            if (StructSource.ModelInfomation != null)
            {
                {
                    if (StructSource.ModelInfomation.Get("文件类型") != null)
                    {
                        this.IsDZBS = StructSource.ModelInfomation.Get("文件类型").ToString().Equals("电子标书");
                    }
                    else
                    {
                        this.IsDZBS = false;
                    }
                }
            }
            _ObjectSource.GetObject(this, this.StructSource.ModelProject.Rows[0]);
        }
Esempio n. 2
0
 /// <summary>
 /// 此方法没有调用之前当前对象仅仅作为实体使用
 /// 单位工程或项目成为业务对象的时候调用此方法
 /// </summary>
 /// <param name="p_ds"></param>
 public virtual void Ready(_StructSource p_ds)
 {
     this.StructSource = p_ds;
 }