/// <summary>
 /// 新增一条指标配置
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnAdd_Click(object sender, EventArgs e)
 {
     ZBBPZFrm zbbpzForm = new ZBBPZFrm();
     zbbpzForm.ShowDialog();
     if(zbbpzForm.DialogResult==DialogResult.OK)
     {
         this.zhiBiaoTableAdapter.Fill(this.settingDataSet.ZhiBiao);
     }
 }
Exemple #2
0
        /// <summary>
        /// 新增一条指标配置
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAdd_Click(object sender, EventArgs e)
        {
            ZBBPZFrm zbbpzForm = new ZBBPZFrm();

            zbbpzForm.ShowDialog();
            if (zbbpzForm.DialogResult == DialogResult.OK)
            {
                this.zhiBiaoTableAdapter.Fill(this.settingDataSet.ZhiBiao);
            }
        }
 /// <summary>
 /// 修改选定的指标配置
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnEdit_Click(object sender, EventArgs e)
 {
     //选中数据的主键ID
     int SelectedRow = (int)dataGridView1.SelectedRows[0].Cells[0].Value;
     if(SelectedRow>0)
     {
         ZBBPZFrm zbbpzForm = new ZBBPZFrm();
         zbbpzForm.IntZhiBiaoId = SelectedRow;
         zbbpzForm.ShowDialog();
         if (zbbpzForm.DialogResult == DialogResult.OK)
         {
             this.zhiBiaoTableAdapter.Fill(this.settingDataSet.ZhiBiao);
         }
     }
 }
Exemple #4
0
        /// <summary>
        /// 修改选定的指标配置
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnEdit_Click(object sender, EventArgs e)
        {
            //选中数据的主键ID
            int SelectedRow = (int)dataGridView1.SelectedRows[0].Cells[0].Value;

            if (SelectedRow > 0)
            {
                ZBBPZFrm zbbpzForm = new ZBBPZFrm();
                zbbpzForm.IntZhiBiaoId = SelectedRow;
                zbbpzForm.ShowDialog();
                if (zbbpzForm.DialogResult == DialogResult.OK)
                {
                    this.zhiBiaoTableAdapter.Fill(this.settingDataSet.ZhiBiao);
                }
            }
        }