/// <summary> /// <auth>Modify By Xlb</auth> /// <date>2013-06-18</date> /// </summary> /// <param name="app"></param> public QC_RecordByDoctor(IEmrHost app) { try { InitializeComponent(); m_app = app; Init(); //Add by xlb 2013-06-18 DS_Common.CancelMenu(panelControl1, new ContextMenuStrip()); } catch (Exception ex) { throw ex; } }
/// <summary> /// 窗体加载事件 /// xlb 2013-01-08 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void QCTimeRecord_Load(object sender, EventArgs e) { try { this.Text = formName; textEditCodeDesc.Focus(); gridControlEmrQcItem.TabStop = false;//屏蔽掉tab切换焦点定位列表上 //禁掉右键菜单 DS_Common.CancelMenu(panelControlTop, contextMenuStrip1); DS_Common.CancelMenu(groupControlNotton, contextMenuStrip1); } catch (Exception ex) { DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex); } }
/// <summary> /// 窗体加载事件 /// by xlb 2013-01-06 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void QCTimeControl_Load(object sender, EventArgs e) { try { this.Text = formCaption; InitDataConditon(); textEditCode.Focus(); textEditConditionCode.Enabled = false;//条件代码框不可编辑 //禁掉右键菜单 xlb 2013-03-01 DS_Common.CancelMenu(panelControlTop, contextMenuStrip1); DS_Common.CancelMenu(groupControl1, contextMenuStrip1); } catch (Exception ex) { MyMessageBox.Show(1, ex); } }
public UCSuggestion() { try { InitializeComponent(); if (!DesignMode) { #region 屏蔽右键菜单 by xlb 2013-03-21 ContextMenuStrip contextMenuStrip1 = new ContextMenuStrip(); DS_Common.CancelMenu(groupControl1, contextMenuStrip1); #endregion } } catch (Exception ex) { throw ex; } }
/// <summary> /// Modify by xlb 2013-04-07 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void UCJobManager_Load(object sender, EventArgs e) { try { FillTreeListJobsAll(); //窗口加载显示岗位信息 FillTreeListPermission(); //窗口加载显示权限节点信息 //ClearUI(); this.treeListJobsAll.FocusedNodeChanged += new DevExpress.XtraTreeList.FocusedNodeChangedEventHandler(this.treeListJobsAll_FocusedNodeChanged); #region Add by xlb 2013-04-07 屏蔽右键菜单 ContextMenuStrip contextMenuStrip1 = new ContextMenuStrip(); DS_Common.CancelMenu(groupControlBasicInfo, contextMenuStrip1); #endregion } catch (Exception ex) { MessageBox.Show(ex.Message); } }
/// <summary> /// 有参构造 /// <auth>张业兴</auth> /// <date>2012-12-12</date> /// </summary> /// <param name="app"></param> public UCPicSign(IEmrHost app) { try { InitializeComponent(); DS_SqlHelper.CreateSqlHelper(); m_App = app; InitDepartment(); #region 屏蔽右键菜单 ContextMenuStrip contextMenuStrip1 = new ContextMenuStrip(); DS_Common.CancelMenu(panelControl1, contextMenuStrip1); #endregion } catch (Exception ex) { throw ex; } }
///// <summary> ///// 重载构造函数 ///// </summary> ///// <param name="noofinpat">病人病案号</param> ///// <param name="host">接口</param> ///// <param name="consultSn">会诊申请单号</param> //public FrmConsultForReview(string noofinpat,IEmrHost host,string consultSn):this() //{ // try // { // mconsultApplySn = consultSn; // m_app = host; // nOofinpat = noofinpat; // InitInfo(); // } // catch (Exception ex) // { // throw ex; // } //} #endregion /// <summary> /// 构造函数重载 /// Add xlb 2013-03-01 /// </summary> /// <param name="noofinpat">病案号</param> /// <param name="host">接口</param> /// <param name="consultApplySn">申请会诊单号</param> /// <param name="readOnly">审核意见只读性</param> public FrmConsultForReview(string noofinpat, IEmrHost host, string consultApplySn, bool readOnly /*是否只读*/) : this() { try { nOofinpat = noofinpat; m_app = host; mconsultApplySn = consultApplySn; //会诊审核时申请用户控件始终不可编辑 即只读(true) ucConsultationApplyForMultiplyNew1.Init(nOofinpat, m_app, consultApplySn, true); SetReject(readOnly); ContextMenuStrip contextMenuStrip1 = new ContextMenuStrip(); DS_Common.CancelMenu(groupControl1, contextMenuStrip1); } catch (Exception ex) { throw ex; } }
/// <summary> /// 构造方法 /// xlb /// 2013-01-11 /// </summary> public QCTimeConfig() { try { InitializeComponent(); DS_SqlHelper.CreateSqlHelper(); InitDataEmrQcItem(); InitDataRule(); InitLookUpQcCondition(); InitRuleCategoryName(); InitLookUpEditDocLevel(); SetRuleEditState(false, false); RegisterEvent(); textBoxRuleId.Enabled = false; //禁掉第三方控件右键菜单 DS_Common.CancelMenu(groupControlCondtion, contextMenuStrip1); DS_Common.CancelMenu(groupControlRule, contextMenuStrip1); } catch (Exception ex) { throw ex; } }
public void Init(string noofinpat, IEmrHost host, string consultApplySn, bool readOnly) { try { DS_SqlHelper.CreateSqlHelper(); RegisterEvent(); nOofinpat = noofinpat; m_app = host; mconsultApplySn = consultApplySn; InitData(); //窗体打开可新增记录 SetReadonly(readOnly); this.ActiveControl = memoEditSuggestion; #region 屏蔽右键菜单 by xlb 2013-03-21 ContextMenuStrip contextMenuStrip1 = new ContextMenuStrip(); DS_Common.CancelMenu(groupControl2, contextMenuStrip1); #endregion } catch (Exception ex) { throw ex; } }