示例#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;
            }
        }
示例#2
0
        /// <summary>
        /// 根据大项的名称得到评分小项的相关数据信息
        /// </summary>
        /// <param name="ccode"></param>
        /// <returns></returns>
        public DataTable GetChildSocreByCode(string ccode)
        {
            DataTable dt = EmrScoreData.GetChildPointByCode(ccode);

            return(dt);
        }