Exemplo n.º 1
0
        /// <summary>
        /// 增
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected override void InsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            InsBorrowNode ibn = new InsBorrowNode();

            StateType = 0;
            ibn.ShowDialog(this);
            if (base.isflag == true)
            {
                BindDGV();
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 改
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected override void UpdToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SelectedElementCollection col = superGridControl1.PrimaryGrid.GetSelectedRows();

            if (col.Count <= 0)
            {
                MessageBox.Show("请先选择一行!");
                return;
            }
            GridRow row = col[0] as GridRow;

            id = row.Cells["gridColumn1"].Value.ToString();
            InsBorrowNode ibn = new InsBorrowNode();

            StateType = 1;
            ibn.ShowDialog(this);
            if (base.isflag == true)
            {
                BindDGV();
            }
        }