/// <summary> /// 分页控件编辑项操作 /// </summary> private void winGridViewPager1_OnEditSelected(object sender, EventArgs e) { string ID = winGridViewPager1.gridView1.GetFocusedRowCellDisplayText("ID"); List <string> IDList = new List <string>(); for (int i = 0; i < winGridViewPager1.gridView1.RowCount; i++) { string strTemp = winGridViewPager1.GridView1.GetRowCellDisplayText(i, "ID"); IDList.Add(strTemp); } if (!string.IsNullOrEmpty(ID)) { FrmEditProcCardEmployee dlg = new FrmEditProcCardEmployee(); dlg.ID = ID; dlg.IDList = IDList; dlg.OnDataSaved += dlg_OnDataSaved; dlg.InitFunction(LoginUserInfo, FunctionDict); //给子窗体赋值用户权限信息 if (DialogResult.OK == dlg.ShowDialog()) { BindData(); } } }
/// <summary> /// 新增数据操作 /// </summary> private void btnAddNew_Click(object sender, EventArgs e) { FrmEditProcCardEmployee dlg = new FrmEditProcCardEmployee(); dlg.OnDataSaved += dlg_OnDataSaved; dlg.InitFunction(LoginUserInfo, FunctionDict); //给子窗体赋值用户权限信息 if (DialogResult.OK == dlg.ShowDialog()) { BindData(); } }