Ejemplo n.º 1
0
        /// <summary>
        /// 增加信息菜单项
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void bbiadd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmDEPARTMENTADD frm = new frmDEPARTMENTADD();

            frm.ShowDialog();
            ReadData();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 修改项
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void bbiedit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            int id = 0;

            if (this.gridView1.RowCount <= 0)
            {
                return;
            }
            id = ToolHelper.ConvertToInt(this.gridView1.GetFocusedRowCellValue("DEPARTMENTNO").ToString());
            if (id < 1)
            {
                MessageBox.Show("请选择需要修改的学院!", "提示信息");
                return;
            }
            else
            {
                frmDEPARTMENTADD frm = new frmDEPARTMENTADD(id, StatusClass.Edit);
                frm.ShowDialog();
                ReadData();
            }
        }