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

            StateType = 0;
            iotn.ShowDialog(this);
            if (base.isflag == true)
            {
                BindDGV();
            }
        }
Ejemplo 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();
            InsOrderTypeNode iotn = new InsOrderTypeNode();

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