Exemplo n.º 1
0
        /// <summary>
        /// 主表XML
        /// </summary>
        /// <param name="p_objInfo"></param>
        /// <returns>生成的XML</returns>
        private string m_strMakeNewMainXml(clsBeforeOperationSummaryInfo p_objInfo, bool blnIsAddNew)
        {
            m_objXmlMemStream.SetLength(0);

            m_objXmlWriter.WriteStartDocument();
            m_objXmlWriter.WriteStartElement("BeforeOperationSummary");

            if (!blnIsAddNew)
            {
                m_objXmlWriter.WriteAttributeString("OPENDATE", p_objInfo.m_strOpenDate);
            }

            m_objXmlWriter.WriteAttributeString("INPATIENTID", p_objInfo.m_strInPatientID);
            m_objXmlWriter.WriteAttributeString("INPATIENTDATE", p_objInfo.m_strInPatientDate);
            m_objXmlWriter.WriteAttributeString("CREATEDATE", p_objInfo.m_strCreateDate);
            m_objXmlWriter.WriteAttributeString("CREATEID", p_objInfo.m_strCreateID);
            m_objXmlWriter.WriteAttributeString("DIAGNOSEXML", p_objInfo.m_strDiagnoseXml.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("DIAGNOSEGISTXML", p_objInfo.m_strDiagnoseGistXml.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("BODYINFOXML", p_objInfo.m_strBodyInfoXml.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("SPECIALHANDLEXML", p_objInfo.m_strSpecialHandleXml.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("PREPARATIONXML", p_objInfo.m_strPreparationXml.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("PATIENTNOTIONXML", p_objInfo.m_strPatientNotionXml.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("ANAESTHESIAXML", p_objInfo.m_strAnaesthesiaXml.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("AFTERNOTICEXML", p_objInfo.m_strAfterNoticeXml.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("DISCUSSNOTIONXML", p_objInfo.m_strDiscussNotionXml.Replace('\'', 'き'));
            m_objXmlWriter.WriteAttributeString("IFCONFIRM", "0");
            m_objXmlWriter.WriteAttributeString("STATUS", "0");

            m_objXmlWriter.WriteEndElement();
            m_objXmlWriter.WriteEndDocument();

            m_objXmlWriter.Flush();

            return(System.Text.Encoding.Unicode.GetString(m_objXmlMemStream.ToArray(), 39 * 2, (int)m_objXmlMemStream.Length - 39 * 2));
        }
Exemplo n.º 2
0
        public long m_lngModify(clsBeforeOperationSummaryInfo p_objMainInfo, clsBeforeOperationSummaryContentInfo p_objContentInfo)
        {
            string strMainXml    = m_strMakeNewMainXml(p_objMainInfo, false);
            string strContentXml = m_strMakeNewContentXml(p_objContentInfo, false);

            clsBeforeOperationSummaryService m_objService =
                (clsBeforeOperationSummaryService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsBeforeOperationSummaryService));

            long lngRes = 0;

            try
            {
                lngRes = m_objService.m_lngModify(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, strMainXml, strContentXml);
            }
            finally
            {
                //m_objService.Dispose();
            }
            return(lngRes);
        }