/// <summary> /// 打开新窗口 /// </summary> private void OpenDialogFrm(int mode) { if (mode == CConstant.MODE_NEW || _currentProductPartsTable != null) { FrmProductPartsDialog frm = new FrmProductPartsDialog(); frm.UserInfo = _userInfo; frm.CurrentProductPartsTable = _currentProductPartsTable; frm.Mode = mode; DialogResult resule = frm.ShowDialog(this); if (resule == DialogResult.OK && isSearch) { Search(this.pgControl.GetCurrentPage()); } frm.Dispose(); } _currentProductPartsTable = null; }
/// <summary> /// 打开新窗口 /// </summary> private void OpenDialogFrm(int mode) { if (mode == CConstant.MODE_NEW || _currentProductPartsTable != null) { FrmProductPartsDialog frm = new FrmProductPartsDialog(); frm.UserInfo = _userInfo; frm.CurrentProductPartsTable = _currentProductPartsTable; frm.Mode = mode; DialogResult resule = frm.ShowDialog(this); if (resule == DialogResult.OK && isSearch) { Search(this.pgControl.GetCurrentPage()); } frm.Dispose(); } else { //MessageBox.Show("请选择正确的行!", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); } _currentProductPartsTable = null; }