/// <summary> /// 获取重整标记行对应的OrdPrintDO对象 /// </summary> /// <param name="ordPrintDataDTO">第一条待打印数据,用来完善重整标记行数据</param> /// <returns></returns> private OrdPrintDO getOrdPrintDOReset(OrdPrintDataDTO ordPrintDataDTO) { OrdPrintDO ordPrintDO = new OrdPrintDO(); BeanUtils.CopyProerties(ordPrintDataDTO, ordPrintDO, propertiesReset); ordPrintDO.Fg_reformrow = true; ordPrintDO.Content_or_prn = cfgViewModel.GetResetRowContent(true); return(ordPrintDO); }
/// <summary> /// 将医嘱待打印数据对象转换为医嘱打印的数据对象 /// </summary> /// <param name="ordDataDTO">医嘱待打印数据对象</param> /// <returns>医嘱打印的数据对象</returns> private OrdPrintDO convertOrdPrintData(OrdPrintDataDTO ordDataDTO, bool isSubOr) { OrdPrintDO ordPrintDO = new OrdPrintDO(); // 格式好医嘱内容 this.setOrdPrintContent(ordDataDTO, isSubOr); // 属性复制是先排除医生、核对护士签字 // 进行属性拷贝 string[] properties = new string[propertiesSign.Length + propertiesSignStop.Length]; propertiesSign.CopyTo(properties, 0); propertiesSignStop.CopyTo(properties, propertiesSign.Length); BeanUtils.CopyProerties(ordDataDTO, ordPrintDO, properties); // 设置生效日期,停止日期,医生护士签字 this.setOrdPrintDatetime(ordDataDTO, ordPrintDO); return(ordPrintDO); }