private void btnMyAddress_Click(object sender, EventArgs e) { FrmStaffAddressEdit frmStaffAddressEdit = new FrmStaffAddressEdit(UserInfo.StaffId); if (frmStaffAddressEdit.ShowDialog(this) == DialogResult.OK) { // 记录当前选中的主键 this.CurrentEntityId = this.EntityId; // 加载窗体 this.FormOnLoad(); } }
private void btnEdit_Click(object sender, EventArgs e) { string id = BaseInterfaceLogic.GetDataGridViewEntityId(this.grdStaffAddress, BaseStaffEntity.FieldId); FrmStaffAddressEdit frmStaffAddressEdit = new FrmStaffAddressEdit(id); if (frmStaffAddressEdit.ShowDialog(this) == DialogResult.OK) { // 记录当前选中的主键 this.CurrentEntityId = this.EntityId; // 加载窗体 this.FormOnLoad(); } }