예제 #1
0
        private void loadEntpHistory()
        {
            if (BizAssMessageBoxUtil.ShowPatIsNullMsg(this.Ent4BannerDTO, "就诊历史"))
            {
                return;
            }
            if (isEntHistoryFrameOpen)
            {
                return;
            }
            entpHistoryFrame             = new EntHistoryFrame();
            entpHistoryFrame.BannerDTO   = this.Ent4BannerDTO;
            entpHistoryFrame.BaseContext = this.Context;


            this.getParentCtrl();
            entpHistoryFrame.StartPosition = FormStartPosition.Manual;

            entpHistoryFrame.Location            = this.getLocation();
            entpHistoryFrame.Size                = this.getSize();
            entpHistoryFrame.BannerDTO           = this.Ent4BannerDTO;
            entpHistoryFrame.EntHistoryInitEvent = this;
            isEntHistoryFrameOpen                = true; // 记录窗口打开状态
            entpHistoryFrame.Show(this.xBaseCtrl);
        }
예제 #2
0
 /// <summary>
 /// 点击取消按钮事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void XBtnClose_MouseClick(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     if (AssiViewFrame != null)
     {
         this.FindForm().Close();
     }
     else if (EntHistoryFrame != null)
     {
         EntHistoryFrame.Close();
     }
 }