protected override void OnAddClick(EventArgs e) { UCDocEditor edit = new UCDocEditor { DbOperaType = DBOperateType.Add, Title = "新建健康师" }; if (edit.ShowDialog() == DialogResult.OK) { DXMessageBox.Show("添加健康师成功!", true); Tmo_CommonClient.Instance.RefreshDocChildrenID(); GetData(); } edit.Dispose(); base.OnAddClick(e); }
protected override void OnEditClick(DataRow selectedRow) { string doc_id = selectedRow[PrimaryKey].ToString(); UCDocEditor edit = new UCDocEditor { DbOperaType = DBOperateType.Update, Title = "修改健康师信息", PrimaryKeyValue = doc_id }; if (edit.ShowDialog() == DialogResult.OK) { DXMessageBox.Show("信息修改成功!", true); if (doc_id == TmoComm.login_docInfo.doc_id.ToString()) { TmoComm.login_docInfo = Tmo_CommonClient.Instance.GetDocInfo(doc_id); } GetData(); } edit.Dispose(); base.OnEditClick(selectedRow); }