Ejemplo n.º 1
0
        /// <summary>
        /// 浏览病区床位信息
        /// </summary>
        public void m_mthFindArea()
        {
            clsDcl_Charge objCharge = new clsDcl_Charge();
            DataTable     dt        = new DataTable();

            long l = objCharge.m_lngGetDeptArea(out dt, 2);

            if (l == 0)
            {
                return;
            }

            frmAreaBedInfo f = new frmAreaBedInfo(dt, 0);

            if (f.ShowDialog() == DialogResult.OK)
            {
                this.m_objViewer.RegisterID = f.regid;
                this.m_objViewer.PatientID  = f.pid;
                this.m_objViewer.Zyh        = f.Zyh;
                this.m_objViewer.Zycs       = f.Zycs;
                this.m_objViewer.PatName    = f.patname;
                this.m_objViewer.InType     = 1;

                clsPublic.m_mthWriteParm(f.regid, f.Zyh, f.CardNo);
                this.m_objViewer.DialogResult = DialogResult.OK;
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 调科室(病区)
        /// </summary>
        public void m_mthLoadArea()
        {
            DataTable dt = new DataTable();

            long l = this.objSvc.m_lngGetDeptArea(out dt, 2);

            if (l == 0)
            {
                return;
            }

            frmAreaBedInfo f = new frmAreaBedInfo(dt, 1);

            if (f.ShowDialog() == DialogResult.OK)
            {
                this.m_mthFind(f.Zyh, 2);
                if (ZyhChanged != null)
                {
                    ZyhChanged();
                }
            }
        }