private void 汽蚀试验_Load(object sender, EventArgs e) { this.凯泉报表控制板1.设置标题(); DataPvg.LoadDataPvg(100); _批次编号 = (IValue)数据项哈希存储.GetIValue("批次编号"); // 毋需注销的控件 this.grid1.InitViewLayout("试验表格配置\\汽蚀试验批次.xml"); grid2.SetGridtoBandGrid(); this.grid2.InitViewLayout("试验表格配置\\汽蚀试验.xml"); if (当前试验组信息.试验ID == 0) { return; } logic.Load("汽蚀试验", this, 当前试验组信息.试验ID, 5, 20); logic.LoadGrid(this.grid2, "汽蚀试验", string.Empty, "汽蚀余量 desc", false); //if (全局缓存.当前试验组信息.Has流量仪表 == false) //{ // logic.TableComputer("汽蚀试验", "流量", new 性能试验_额定转速下流量()); //} InitGrid_批次(); //logic.LoadGrid(this.grid2, "汽蚀试验"); xyGraph1.Invalidate(); // 需要人工注销的控件 this.数显仪表集合1.f_初始化所有仪表("试验数显配置\\汽蚀试验数显区配置.xml"); this.数显仪表集合1.添加警告项("汽蚀试验额定转速下流量"); 全局缓存.水泵试验缓存.汽蚀试验进行中 = true; }
private void 运转试验_Load(object sender, EventArgs e) { DataPvg.LoadDataPvg(500); this.grid1.显示采集(this); _重置标签 = new 重置标签(this.F_重置标签); // 毋需注销的控件 this.grid1.InitViewLayout("试验表格配置\\温升试验.xml"); // 需要人工注销的控件 this.数显仪表集合1.f_初始化所有仪表("试验数显配置\\温升试验数显区配置.xml"); //this.凯泉报表控制板1.f_初始化所有通道("试验数显配置\\凯泉项目控制板配置.xml"); logic = new GatherLogic(); logic.Load("温升试验", this, 当前试验组信息.试验ID, 60000, 2880000); //60000 logic.LoadGrid(this.grid1, "温升试验", string.Empty, "流量 desc", false); // false不加入序号 logic.GatherComplete(this, "温升试验"); logic.GatherStorePattern("温升试验", DataStoreType.SynDB); // 采集模式为同步进行 }
private void 性能试验_Load(object sender, EventArgs e) { if (当前试验组信息.试验ID == 0) { return; } DataPvg.LoadDataPvg(500); this.数显仪表集合1.f_初始化所有仪表("试验数显配置\\潜水泵性能试验数显区配置.xml"); logic = new GatherLogic(); logic.Load("潜水泵性能试验", this, 当前试验组信息.试验ID, 1000, 10000); logic.LoadGrid(this.grid1, "潜水泵性能试验", string.Empty, "流量 desc", true); logic.TableComputer("潜水泵性能试验", "转速", new 额定转速计算()); logic.TableComputer("潜水泵性能试验", "出口压力", new 出口压力计算()); #region 注销代码 //logic = new GatherLogic(); //logic.Load("Test", this, 1, "序列1", "192.168.1.98", 5, 20); //DataTable tb2 = logic.GetReportTable("Test"); //String[] columnNames = new string[] { "电压1", "电流1", "日期值", "时间值", "序列号" }; //String[] columnIDs = new string[] { "电压1", "电流1", "日期值", "时间值", "序列1" }; //String[] invisibleColumns = new string[] { "id,groupid" }; //this.grid1.SetGridColumns(columnNames, columnIDs, invisibleColumns); //// this.grid1.ButtonPanelVisible = false; //grid1.SetReadOnly(false); //for (int i = 0; i < grid1.ExportView.Columns.Count; i++) //{ // grid1.ExportView.Columns[i].ColumnEdit = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); // grid1.ExportView.Columns[i].OptionsColumn.AllowEdit = true; //} //this.grid1.SetDataSource(tb2); //this.grid1.BtnAddRowClick += new EventHandler(grid1_BtnAddRowClick); //this.grid1.BtnReduceRowClick += new EventHandler(grid1_BtnReduceRowClick); //this.grid1.Btn执行命令1Click += new EventHandler(grid1_Btn执行命令1Click); #endregion for (int j = 0; j < xyGraph1.Graph.Plots.Count; j++) { if (xyGraph1.Graph.Plots[j].Tag.ToString().Equals("H-Q-BS")) { xyGraph1.Graph.Plots[j].PlotXY(全局缓存.当前试验组信息.水泵额定流量, 全局缓存.当前试验组信息.水泵额定扬程); } } xyGraph1.Invalidate(); }
private void 启动试验_Load(object sender, EventArgs e) { DataPvg.LoadDataPvg(-1); _重置标签 = new 重置标签(this.F_重置标签); // 毋需注销的控件 this.grid1.InitViewLayout("试验表格配置\\启动试验.xml"); string ip = System.Configuration.ConfigurationSettings.AppSettings["AnyWayIp"].ToString(); // 需要人工注销的控件 this.数显仪表集合1.f_初始化所有仪表("试验数显配置\\启动试验数显区配置.xml"); //this.凯泉报表控制板1.f_初始化所有通道("试验数显配置\\凯泉项目控制板配置.xml"); logic = new GatherLogic(); logic.Load("启动试验", this, 当前试验组信息.试验ID, 20, 30000); logic.LoadGrid(this.grid1, "启动试验", string.Empty, "流量 desc", true); logic.GatherComplete(this, "启动试验"); logic.LoginSurfaceGather("启动试验", ip); logic.GatherStorePattern("启动试验", DataStoreType.LastDB); 构造波形(); 绘制波形(); }