예제 #1
0
        /// <summary>
        /// 弹出式菜单的“新增专业信息”按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        private void bbiAdd_ItemClick_1(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmENTERPRISEADD frm = new frmENTERPRISEADD();

            frm.ShowDialog();
            ReadData();
        }
예제 #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("ENTNO").ToString());
            if (id < 1)
            {
                MessageBox.Show("请选择需要修改的企业信息!", "提示信息");
                return;
            }
            else
            {
                frmENTERPRISEADD frm = new frmENTERPRISEADD(id, StatusClass.Edit);
                frm.ShowDialog();
                ReadData();
            }
        }