示例#1
0
        public GatherDataSet GetGatherInfo(string reportName)
        {
            GatherDataSet ds = new GatherDataSet();
            string sql = "";
            if (this.reportName == "汽蚀试验" || this.reportName == "潜水泵性能试验")
            {
                sql = "select * from GatherTB where reportName='" + reportName + "' order by id";
            }
            else
            {
                sql = "select * from GatherTB where reportName='" + reportName + "'";
            }

            数据库操作类.FillDataSet(ds, ds.GatherTB.TableName, sql);
            return ds;
        }
示例#2
0
 public void LoadGatherInfo(GatherDataSet ds)
 {
     GatherField field = null;
     int count = ds.GatherTB.Count;
     for (int i = 0; i < count; i++)
     {
         field = new GatherField();
         field.DataNo = ds.GatherTB[i].computerNo.Trim();
         field.FieldName = ds.GatherTB[i].fieldName.Trim();
         field._Type = (FieldDataType)ds.GatherTB[i].fieldDataType;
         field._SourceType = (数据来源类型)ds.GatherTB[i].fieldSourceType;
         this.list.Add(field);
     }
 }