Пример #1
0
        /// <summary>
        /// 开关量状态变动
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItem9_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("SourceIsList", "true");
                        point1.Add("Key_ViewJC_KGStateMonth1_point", "等于&&$" + point);
                        point1.Add("Display_ViewJC_KGStateMonth1_point", "等于&&$" + point);
                    }
                    else
                    {
                        OprFuction.MessageBoxShow(0, "请选择开关量测点");
                        return;
                    }
                }
                point1.Add("ListID", "17");
                //RequestUtil.ExcuteCommand("RequestKGLStateRBReport", point1, false);
                Sys.Safety.Reports.frmList listReport = new Sys.Safety.Reports.frmList(point1);
                listReport.Show();
            }
            catch (Exception ex)
            {
                OprFuction.SaveErrorLogs("开关量状态变动记录", ex);
            }
        }
Пример #2
0
        /// <summary>
        /// 模拟量密采记录
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItem8_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, "模拟量"))
                    {
                        point1.Add("SourceIsList", "true");
                        point1.Add("Key_viewmcrunlogreport1_point", "等于&&$" + point);
                        point1.Add("Display_viewmcrunlogreport1_point", "等于&&$" + point);
                    }
                    else
                    {
                        OprFuction.MessageBoxShow(0, "请选择模拟量测点");
                        return;
                    }
                }
                point1.Add("ListID", "28");
                //RequestUtil.ExcuteCommand("RequestMCRungLogReport", point1, false);
                Sys.Safety.Reports.frmList listReport = new Sys.Safety.Reports.frmList(point1);
                listReport.Show();
            }
            catch (Exception ex)
            {
                OprFuction.SaveErrorLogs("模拟量密采记录", ex);
            }
        }
Пример #3
0
        /// <summary>
        /// 运行记录查询
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Dictionary <string, string> point1 = new Dictionary <string, string>();

            try
            {
                string point = GetSelectPoint();
                if (!string.IsNullOrEmpty(point))
                {
                    point1.Add("SourceIsList", "true");
                    point1.Add("Key_viewsbrunlogreport1_point", "等于&&$" + point);
                    point1.Add("Display_viewsbrunlogreport1_point", "等于&&$" + point);
                }
                point1.Add("ListID", "27");
                //RequestUtil.ExcuteCommand("Requestsbrunlogreport", point1, false);
                Sys.Safety.Reports.frmList listReport = new Sys.Safety.Reports.frmList(point1);
                listReport.Show();
            }
            catch (Exception ex)
            {
                OprFuction.SaveErrorLogs("历史运行记录", ex);
            }
        }