/// <summary> /// 5分钟曲线 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void barButtonItem3_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Dictionary <string, string> point1 = new Dictionary <string, string>(); try { string point = GetSelectPoint(); if (!string.IsNullOrEmpty(point)) { if (PointLx(point, "模拟量")) { point = GetPointID(point); point1.Add("PointID", point); //RequestUtil.ExcuteCommand("RequestMnl_FiveMiniteLine", point1, false); Mnl_FiveMiniteLine mnl_FiveMiniteLine = new Mnl_FiveMiniteLine(point1); mnl_FiveMiniteLine.Show(); } else { OprFuction.MessageBoxShow(0, "请选择模拟量测点"); } } else { //RequestUtil.ExcuteCommand("RequestMnl_FiveMiniteLine", null, false); Mnl_FiveMiniteLine mnl_FiveMiniteLine = new Mnl_FiveMiniteLine(); mnl_FiveMiniteLine.Show(); } } catch (Exception ex) { OprFuction.SaveErrorLogs("模拟量历史曲线5分钟", ex); } }
private void barButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { DataRow dr = gvLogInfo.GetDataRow(gvLogInfo.FocusedRowHandle); if (dr == null) { return; } Dictionary <string, string> dic = new Dictionary <string, string>(); dic.Add("PointID", dr["pointid"].ToString()); Mnl_FiveMiniteLine mfml = new Mnl_FiveMiniteLine(dic); mfml.Show(); }