Esempio n. 1
0
        ///只需要查出时间
        public DateTime [] m_dtmGetTimeInfoOfAPatientArr(string p_strInPatientID, string p_strInPatientDate)
        {
            if (p_strInPatientID == null || p_strInPatientID == "")
            {
                return(null);
            }
            DateTime[] dtmCreateRecordDateArr = null;

            clsMRIApplyServ m_objServ =
                (clsMRIApplyServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsMRIApplyServ));

            try
            {
                string strXml  = "";
                int    intRows = 0;

                long lngRes = m_objServ.m_lngGetAllCreateDate(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientID, p_strInPatientDate, out strXml, out intRows);

                if (lngRes > 0 && intRows > 0)
                {
                    dtmCreateRecordDateArr = new DateTime[intRows];

                    XmlTextReader objReader = new XmlTextReader(strXml, XmlNodeType.Element, m_objXmlParser);
                    objReader.WhitespaceHandling = WhitespaceHandling.None;

                    int intIndex = 0;
                    while (objReader.Read())
                    {
                        switch (objReader.NodeType)
                        {
                        case XmlNodeType.Element:
                            if (objReader.HasAttributes)
                            {
                                dtmCreateRecordDateArr[intIndex] = DateTime.Parse(objReader.GetAttribute("CREATEDATE"));
                                intIndex++;
                            }
                            break;
                        }
                    }
                }
            }
            finally
            {
                //m_objServ.Dispose();
            }
            return(dtmCreateRecordDateArr);
        }
Esempio n. 2
0
        public string[] m_strGetAllCreateDateArr(string p_strInPatientID, string p_strInPatientDate)
        {
            string strXML    = "";
            int    intRows   = 0;
            long   lngResult = 0;

            clsMRIApplyServ m_objServ =
                (clsMRIApplyServ)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsMRIApplyServ));

            try
            {
                lngResult = m_objServ.m_lngGetAllCreateDate(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strInPatientID, p_strInPatientDate, out strXML, out intRows);
                if (intRows > 0)
                {
                    string[] strDateArr = new string[intRows];

                    XmlTextReader objReader = new XmlTextReader(strXML, XmlNodeType.Element, m_objXmlParser);
                    objReader.WhitespaceHandling = WhitespaceHandling.None;

                    int intIndex = 0;
                    while (objReader.Read())
                    {
                        switch (objReader.NodeType)
                        {
                        case XmlNodeType.Element:
                            if (objReader.HasAttributes)
                            {
                                strDateArr[intIndex++] = DateTime.Parse(objReader.GetAttribute("CREATEDATE")).ToString("yyyy-MM-dd HH:mm:ss");
                            }
                            break;
                        }
                    }
                    return(strDateArr);
                }
            }
            finally
            {
                //m_objServ.Dispose();
            }
            return(null);
        }