示例#1
0
        private void txtBedID_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                if (this.m_txtAREAID.Value == null)
                {
                    MessageBox.Show("请先选择病区。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
                else
                {
                    string     areaid = this.m_txtAREAID.Value.ToString().Trim();
                    frmAidFind fAid   = new frmAidFind(this, 3, areaid, this.objReport.objDeptIDArr);
                    fAid.StartPosition = FormStartPosition.Manual;

                    frmMark = fAid;

                    Point p1 = new Point(this.txtBedID.Location.X - 98, this.txtBedID.Location.Y + this.txtBedID.Height - 143);
                    Point p2 = this.txtBedID.PointToScreen(p1);
                    fAid.Location = new Point(p2.X, p2.Y);
                    fAid.Width    = fAid.Width - 30;
                    fAid.Show();
                }
            }
        }
示例#2
0
        /// <summary>
        /// 显示科室(病区)
        /// </summary>
        public void m_mthShowArea()
        {
            frmAidFind fAid = new frmAidFind(this, 1, null, ObjDeptIDArr);

            fAid.StartPosition = FormStartPosition.Manual;

            frmMark = fAid;

            Point p1 = new Point(this.txtArea.Location.X - 16, this.txtArea.Location.Y + this.txtArea.Height - 2);
            Point p2 = this.txtArea.PointToScreen(p1);

            fAid.Location = new Point(p2.X, p2.Y);
            fAid.Show();
        }
示例#3
0
        private void txtArea_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                frmAidFind fAid = new frmAidFind(this, 1, null, ObjDeptIDArr);
                fAid.StartPosition = FormStartPosition.Manual;

                frmMark = fAid;

                Point p1 = new Point(this.txtArea.Location.X - 16, this.txtArea.Location.Y + this.txtArea.Height - 2);
                Point p2 = this.txtArea.PointToScreen(p1);
                fAid.Location = new Point(p2.X, p2.Y);
                fAid.Show();
            }
        }
示例#4
0
        /// <summary>
        /// 调病床
        /// </summary>
        public void m_mthLoadBed()
        {
            if (parm_areaid != "" && parm_zyh == "")
            {
                if (this.txtBedno.Text.Trim() != "" && this.txtBedno.Text.Trim() != "<病床>")
                {
                    string s = this.objSvc.m_strGetZyhByAreaAndBedID(parm_areaid, this.txtBedno.Text.Trim());
                    if (s != "")
                    {
                        this.Parm_Zyh = s;
                    }
                }
                else
                {
                    frmAidFind fAid = new frmAidFind(this, 2, parm_areaid, ObjDeptIDArr);
                    fAid.StartPosition = FormStartPosition.Manual;

                    frmMark = fAid;

                    Point p1 = new Point(this.txtBedno.Location.X - 100, this.txtBedno.Location.Y + this.txtBedno.Height - 2);
                    Point p2 = this.txtBedno.PointToScreen(p1);
                    fAid.Location = new Point(p2.X, p2.Y);
                    fAid.Width    = fAid.Width - 40;
                    fAid.Show();
                }
            }
            else
            {
                if (parm_zyh != "")
                {
                    this.m_mthFind(parm_zyh, 2);
                    if (ZyhChanged != null)
                    {
                        ZyhChanged();
                    }
                }
                else
                {
                    this.txtCardno.Focus();
                }
            }
        }