示例#1
0
        public void LoadData(decimal currInpatient, DataLoader dataLoader)
        {
            try
            {
                threeMeasureDrawHepler = new ThreeMeasureDrawHepler(currInpatient, dataLoader);

                Size size = ConfigInfo.GetImagePageBound();
                _dataImage = new Bitmap(size.Width, size.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb); //用于绘制数据表单
                Graphics g = Graphics.FromImage(_dataImage);
                threeMeasureDrawHepler.DrawDataImage(g);
                ConfigInfo.dataIamgeSize = size;
                DataImage = _dataImage;
                g.Save();
                g.Dispose();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#2
0
 /// <summary>
 /// 创建数据图片
 /// </summary>
 /// <param name="pid"></param>
 /// <returns></returns>
 public void LoadDataImage(decimal noOfInpat)
 {
     try
     {
         dataLoader.CurrentPat = noOfInpat;
         dataLoader.GetPatientInfoForThreeMeasureTable(noOfInpat);
         ThreeMeasureDrawHepler threeMeasureDrawHepler = new ThreeMeasureDrawHepler(noOfInpat, dataLoader);
         Size     size       = ConfigInfo.GetImagePageBound();
         Bitmap   _dataImage = new Bitmap(size.Width, size.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb); //用于绘制数据表单
         Graphics g          = Graphics.FromImage(_dataImage);
         threeMeasureDrawHepler.DrawDataImage(g);
         ConfigInfo.dataIamgeSize = size;
         uC_ImageBoard1.DataImage = _dataImage;
         g.Save();
         g.Dispose();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }