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

            frm.ShowDialog();
            ReadData();
        }
Exemplo n.º 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("MATERIALNO").ToString());
            if (id < 1)
            {
                MessageBox.Show("请选择需要修改的材料!", "提示信息");
                return;
            }
            else
            {
                frmMATERIALADD frm = new frmMATERIALADD(id, StatusClass.Edit);
                frm.ShowDialog();
                ReadData();
            }
        }