Exemplo n.º 1
0
        /// <summary>
        /// 设置医嘱打印中医嘱内容 content_or_prn
        /// </summary>
        /// <param name="ordDataDTO">医嘱数据对象</param>
        private void setOrdPrintContent(OrdPrintDataDTO ordDataDTO, bool isSubOr)
        {
            // 获取当前打印数据对应的格式化字符串
            string format = cfgViewModel.GetRenderStr(ordDataDTO.Fg_long, ordDataDTO.Sd_srvtp);

            // 将OrdPrintDataDTO中属性按照格式化字符串进行数据转换
            string renderResult = RenderUtil.Render(format, ordDataDTO);

            ordDataDTO.Content_or_prn = (isSubOr ? "---" : "") + renderResult;
        }