private void ItemButtonEdit物料编码_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { try { int iRow = 0; for (int i = 0; i < gridView1.RowCount; i++) { if (gridView1.IsRowSelected(i)) { iRow = i; } } string invocde = gridView1.GetRowCellValue(iRow, gridCol存货编码).ToString().Trim(); 系统服务.Frm参照 frm = new 系统服务.Frm参照(1, invocde); if (DialogResult.OK == frm.ShowDialog()) { gridView1.SetRowCellValue(iRow, gridCol存货编码, frm.sID); frm.Enabled = true; } } catch (Exception ee) { MessageBox.Show(ee.Message); } }
private void ItemButtonEdit分销商分类_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { try { int iRow = gridView1.FocusedRowHandle; 系统服务.Frm参照 frm = new 系统服务.Frm参照(8); if (DialogResult.OK == frm.ShowDialog()) { gridView1.SetRowCellValue(iRow, gridCol经销商分类编码, frm.sID); frm.Enabled = true; } } catch { } }
private void buttonEdit物料2_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { try { 系统服务.Frm参照 frm = new 系统服务.Frm参照(1); if (DialogResult.OK == frm.ShowDialog()) { buttonEdit物料2.EditValue = frm.sID; frm.Enabled = true; } } catch (Exception ee) { MessageBox.Show(ee.Message); } }
private void ItemButtonEditDeptID_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { try { int iRow = 0; iRow = gridView1.FocusedRowHandle; 系统服务.Frm参照 frm = new 系统服务.Frm参照(5); if (DialogResult.OK == frm.ShowDialog()) { gridView1.SetRowCellValue(iRow, gridColDeptID, frm.sID); } } catch (Exception ee) { MessageBox.Show(ee.Message); } }