Beispiel #1
0
        /// <summary>
        /// 修改
        /// </summary>
        private void Update_Click(object sender, RoutedEventArgs e)
        {
            if (PublicParam.IsDoTask)
            {
                Notice.Show("请先关闭顶部[设备运作]!", "提示", 3, MessageBoxIcon.Info);
                return;
            }

            if (DGarea.SelectedItem == null)
            {
                return;
            }
            DataRowView         dr = DGarea.SelectedItem as DataRowView;
            W_SettingAreaDetail wd = new W_SettingAreaDetail(
                dr["AREA"].ToString(),
                dr["REMARK"].ToString(),
                dr["AWC_DIS_SAFE"].ToString(),
                dr["AWC_DIS_TAKE"].ToString(),
                dr["AWC_DIS_GIVE"].ToString(),
                dr["RGV_DIS_SAFE"].ToString(),
                dr["RGV_DIS_BUTT"].ToString(),
                dr["RGV_P_CENTER"].ToString(),
                dr["RGV_P_ARF"].ToString(),
                dr["ARF_DIS_SAFE"].ToString(),
                dr["ARF_P_RGV"].ToString(),
                dr["ARF_P_STAND1"].ToString(),
                dr["ARF_P_STAND2"].ToString());

            wd.ShowDialog();

            PublicParam.IsRe = true;
            Refresh_Click(sender, e);
        }
Beispiel #2
0
        /// <summary>
        /// 新增
        /// </summary>
        private void Add_Click(object sender, RoutedEventArgs e)
        {
            if (PublicParam.IsDoTask)
            {
                Notice.Show("请先关闭顶部[设备运作]!", "提示", 3, MessageBoxIcon.Info);
                return;
            }

            W_SettingAreaDetail wd = new W_SettingAreaDetail();

            wd.ShowDialog();

            PublicParam.IsRe = true;
            Refresh_Click(sender, e);
        }