/// <summary> /// 编辑列表数据 /// </summary> private void EditData() { string ID = this.winGridViewPager1.gridView1.GetFocusedRowCellDisplayText("Ng替换记录id"); List <string> IDList = new List <string>(); for (int i = 0; i < this.winGridViewPager1.gridView1.RowCount; i++) { string strTemp = this.winGridViewPager1.GridView1.GetRowCellDisplayText(i, "Ng替换记录id"); IDList.Add(strTemp); } if (!string.IsNullOrEmpty(ID)) { FrmEdit物料ng替换记录表 dlg = new FrmEdit物料ng替换记录表(); dlg.ID = ID; dlg.IDList = IDList; dlg.OnDataSaved += new EventHandler(dlg_OnDataSaved); dlg.InitFunction(LoginUserInfo, FunctionDict);//给子窗体赋值用户权限信息 if (DialogResult.OK == dlg.ShowDialog()) { BindData(); } } }
/// <summary> /// 添加数据 /// </summary> private void AddData() { FrmEdit物料ng替换记录表 dlg = new FrmEdit物料ng替换记录表(); dlg.OnDataSaved += new EventHandler(dlg_OnDataSaved); dlg.InitFunction(LoginUserInfo, FunctionDict);//给子窗体赋值用户权限信息 if (DialogResult.OK == dlg.ShowDialog()) { BindData(); } }