Exemplo n.º 1
0
        public 温升试验集合 获取温升试验集合()
        {
            decimal id  = 当前试验组信息.试验ID;
            温升试验集合  ds  = new 温升试验集合();
            string  sql = "select 日期值,时间值,流量,扬程,轴功率,电压,电流,温度 as 温度1,温度2,温度3,温度4,温度5,温度6,温度7,温度8 from 温升试验 where groupid=" + 当前试验组信息.试验ID;

            数据库操作类.FillDataSet(ds, ds.温升试验.TableName, sql);
            return(ds);
        }
Exemplo n.º 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            string rptPath = AppDomain.CurrentDomain.BaseDirectory + "\\试验报表RPT\\温升报表.rpt";

            this.reportDocument1.Load(rptPath);
            //this.reportDocument1.
            温升试验集合 ds = this.获取温升试验集合();

            this.reportDocument1.SetDataSource(ds);
            this.reportDocument1.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.Excel, this.path + string.Format("\\温升试验{0}.xls", GetTime()));
        }
Exemplo n.º 3
0
 public 温升试验集合 获取温升试验集合()
 {
     decimal id = 当前试验组信息.试验ID;
     温升试验集合 ds = new 温升试验集合();
     string sql = "select 日期值,时间值,流量,扬程,轴功率,电压,电流,温度 as 温度1,温度2,温度3,温度4,温度5,温度6,温度7,温度8 from 温升试验 where groupid=" + 当前试验组信息.试验ID;
     数据库操作类.FillDataSet(ds, ds.温升试验.TableName, sql);
     return ds;
 }