Exemplo n.º 1
0
        private void barButtonItem1_ItemClick_1(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmTERMADD frm = new frmTERMADD();

            frm.ShowDialog();
            ReadData();
        }
Exemplo n.º 2
0
        private void barButtonItem3_ItemClick_1(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            int id = 0;

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