private void LinkEdit_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { ImageComboBoxItem selItem = aclb_type.SelectedItem as ImageComboBoxItem; if (selItem != null) { var drs = _aclibType.Select("type_id=" + selItem.Value); string doc_id = drs[0]["doc_id"].ToString(); if (doc_id == TmoComm.login_docInfo.doc_id.ToString()) { UCActionPlanlibTypeEditor typeEditor = new UCActionPlanlibTypeEditor() { Title = "修改健康计划库类型", PrimaryKeyValue = selItem.Value.ToString(), DbOperaType = DBOperateType.Update }; if (typeEditor.ShowDialog() == DialogResult.OK) { DXMessageBox.Show("健康计划库类型修改成功!", true); _aclibType = Tmo_FakeEntityClient.Instance.GetData("tmo_actionplanlibtype"); TSCommon.BindImageComboBox(aclb_type, _aclibType, null, "type_name", "type_id"); } typeEditor.Dispose(); } else { DXMessageBox.ShowWarning("没有权限(非创建者)!\n创建者ID[" + doc_id + "]"); } } }
private void LinkAdd_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { UCActionPlanlibTypeEditor typeEditor = new UCActionPlanlibTypeEditor() { Title = "添加健康计划库类型", DbOperaType = DBOperateType.Add }; if (typeEditor.ShowDialog() == DialogResult.OK) { DXMessageBox.Show("健康计划库类型创建成功!", true); _aclibType = Tmo_FakeEntityClient.Instance.GetData("tmo_actionplanlibtype"); TSCommon.BindImageComboBox(aclb_type, _aclibType, null, "type_name", "type_id"); } typeEditor.Dispose(); }