/// <summary>
        /// 构造处置xml格式数据
        /// </summary>
        /// <param name="ciOrderList"></param>
        /// <returns></returns>
        public string convertCZToXmlStr(CiOrderDO[] ciOrders, string xmlCfgPath)
        {
            string xmlPath = Application.StartupPath + xmlCfgPath;

            StringBuilder builder = new StringBuilder();

            if (ciOrders != null && ciOrders.Length > 0)
            {
                XmlElement element = EmrEditorXmlViewModel.loadXml(xmlPath);

                builder.Append("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
                builder.Append("<table>");

                // 获取处置列
                List <string> colNameList = this.getCzColumn(element);

                //追加Column部分
                this.appendColumnStr(builder, colNameList);

                // 追加body部分
                this.appendBodyStr(element, colNameList, builder, ciOrders);

                builder.Append("</table>");
            }

            return(builder.ToString());
        }
        /// <summary>
        /// 诊断转xml格式
        /// </summary>
        /// <param name="diDTOs">诊断数据集合</param>
        /// <param name="xmlCfgPath">解析诊断的xml配置文件</param>
        /// <returns></returns>
        public string convertZdToXmlStr(DIDTO[] diDTOs, string xmlCfgPath)
        {
            bool showDigTypeName = false;

            string        xmlPath = Application.StartupPath + xmlCfgPath;
            StringBuilder builder = new StringBuilder();

            builder.Append("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
            builder.Append("<root>");
            builder.Append("<dig signName=\"\" signTime=\"\">");
            if (diDTOs != null && diDTOs.Length > 0)
            {
                // 获取诊断体系常量
                List <string> zdtxList = EmrEditorXmlViewModel.getZdtxList(xmlPath);
                SortedDictionary <string, SortedDictionary <string, SortedDictionary <string, string> > > propertyDic = EmrEditorXmlViewModel.getXmlDic(xmlPath);

                SortedDictionary <string, List <DIDTO> > diDTODic = this.reOrderDIDTO(diDTOs, zdtxList);
                if (diDTODic != null)
                {
                    //if (diDTODic.Count > 1)
                    //{
                    showDigTypeName = true;
                    //}

                    foreach (string zdtx in zdtxList)
                    {
                        if (!diDTODic.ContainsKey(zdtx))
                        {
                            continue;
                        }

                        SortedDictionary <string, SortedDictionary <string, string> > dic = propertyDic[zdtx];
                        SortedDictionary <string, string> digTypeProeprty = dic[DIGTYPE_NODE];
                        // 追加digType节点
                        this.appendDigTypeProperty(builder, digTypeProeprty, showDigTypeName);

                        // 追加dig、cdig节点
                        this.appendDigProperty(builder, dic, diDTODic[zdtx]);

                        builder.Append("</digType>");
                    }
                }
            }
            builder.Append("</dig>");
            builder.Append("</root>");
            return(builder.ToString());
        }