Beispiel #1
0
        /// <summary>
        /// 增加就业记录菜单
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void bbi_Add_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (this.gridView1.RowCount > 0)
            {
                this._stuno = this.gridView1.GetFocusedRowCellValue("STUNO").ToString();
            }
            else
            {
                if (this._stuno.Length <= 0)
                {
                    MessageBox.Show("请选择要增加就业信息的学生!", "提示信息");
                    return;
                }
            }
            frmSTU_JOBSTATUSADD frm = new frmSTU_JOBSTATUSADD(_stuno);

            frm.ShowDialog();
            readData(1, _stuno);
        }
Beispiel #2
0
        /// <summary>
        /// 修改就业记录菜单
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        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("STATUSNO").ToString());
            if (id < 1)
            {
                MessageBox.Show("请选择需要修改的就业记录!", "提示信息");
                return;
            }
            else
            {
                this._stuno = this.gridView1.GetFocusedRowCellValue("STUNO").ToString();
                frmSTU_JOBSTATUSADD frm = new frmSTU_JOBSTATUSADD(id, StatusClass.Edit);
                frm.ShowDialog();
                readData(1, _stuno);
            }
        }