Exemple #1
0
        private void PainetOtherRow(PictureBox pictureBox, Graphics g)
        {
            try
            {
                ComputeTable computeTable = new ComputeTable();
                int          SumrowCount  = computeTable.GetSumRowCount(); //大行的行数
                DataTable    dtParentRows = EmrScoreData.GetSumRowCount(); //获得大项的名称
                for (int i = 0; i < dtParentRows.Rows.Count; i++)
                {
                    //得到每个大项里相应的对应的小项的个数(即小项的行数)
                    int ChildrowCount = computeTable.GetChildSocreByCode(dtParentRows.Rows[i]["ccode"].ToString()).Rows.Count;
                    //if (ChildrowCount > 1)//有小项动态画表格的行
                    //{
                    //    //PaintMultiyRows(ChildrowCount, g, pictureBox, dtParentRows.Rows[i]["cname"].ToString(), i);

                    //    PaintMultiyRows(ChildrowCount, g, pictureBox, dtParentRows.Rows[i]["cname"].ToString());
                    //}
                    //else if (ChildrowCount == 1)//无小项,它自身就要成为一行
                    //{
                    //    //PaintSingleRows();
                    //}
                    int   DrawedRowHeight;
                    Point UpTablePoint;
                    //int NewDrawedRowHeight = DrawedRowHeight;

                    PaintMultiyRows(ChildrowCount, g, pictureBox, dtParentRows.Rows[i]["cname"].ToString(), out DrawedRowHeight, out UpTablePoint);
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemple #2
0
        /// <summary>
        /// 获取病人信息(处理病人信息相关)
        /// </summary>
        private void GetPanientData()
        {
            DataTable dtpaientInfo = EmrScoreData.GetPatientInfoForPoint(m_NoOfInpat);

            if (dtpaientInfo.Rows.Count > 0)
            {
                EmrPointInfo emrPointInfo = new EmrPointInfo();
                emrPointInfo.InitPatientInfo(dtpaientInfo);
            }
            lbldeptname.Text   = "科室:" + EmrPointInfo.DeptName;
            lblpatname1.Text   = "患者姓名:" + EmrPointInfo.InpatientName;
            lblpatid1.Text     = "住院号:" + EmrPointInfo.InpatientNo;
            lblzhuyuandoc.Text = "住院医师:" + EmrPointInfo.ResidentDoc;
            lblupdoc.Text      = "上级医师:" + EmrPointInfo.ChiefDoc;
            lblHospital.Text   = HospitalName;
        }
Exemple #3
0
        /// <summary>
        /// 根据大项的名称得到评分小项的相关数据信息
        /// </summary>
        /// <param name="ccode"></param>
        /// <returns></returns>
        public DataTable GetChildSocreByCode(string ccode)
        {
            DataTable dt = EmrScoreData.GetChildPointByCode(ccode);

            return(dt);
        }