/// <summary> /// 密采曲线 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void barButtonItem4_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_McLine", point1, false); Mnl_McLine mnl_McLine = new Mnl_McLine(point1); mnl_McLine.Show(); } else { OprFuction.MessageBoxShow(0, "请选择模拟量测点"); } } else { //RequestUtil.ExcuteCommand("RequestMnl_McLine", null, false); Mnl_McLine mnl_McLine = new Mnl_McLine(); mnl_McLine.Show(); } } catch (Exception ex) { OprFuction.SaveErrorLogs("模拟量历史曲线密采", ex); } }
private void barButtonItem1_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_McLine mfml = new Mnl_McLine(dic); mfml.Show(); }