Example #1
0
        private void bbi_Add_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmMAJORDIRCTADD frm = new frmMAJORDIRCTADD();

            frm.ShowDialog();
            ReadData();
        }
Example #2
0
        private void bbi_Edit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            int id = 0;

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