/// <summary>
        ///
        /// </summary>
        public void m_mthInitThreeMeasureEventInfo(ref clsThreeMeasureEventInfo p_objInfo)
        {
            string strXML  = "";
            int    intRows = 0;

            clsThreeMeasureEventManagerService m_objThreeMeasureEventManagerServ =
                (clsThreeMeasureEventManagerService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsThreeMeasureEventManagerService));

            long lngRes = 0;

            try
            {
                lngRes = m_objThreeMeasureEventManagerServ.m_lngGetAllEvent(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, ref strXML, ref intRows);
            }
            finally
            {
                //m_objThreeMeasureEventManagerServ.Dispose();
            }
            if (lngRes > 0 && intRows == 1)
            {
                XmlDocument objXMLDoc = new XmlDocument();
                objXMLDoc.LoadXml(strXML);

//				for(int i=0;i<objXMLDoc.DocumentElement.ChildNodes.Count;i++)
//				{
//					p_objInfo.m_strThreeMeasureEventID = objXMLDoc.DocumentElement.ChildNodes[i].Attributes["THREEMEASUREEVENTID"].Value;
//					p_objInfo.m_strBeginEventDate = objXMLDoc.DocumentElement.ChildNodes[i].Attributes["BEGINEVENTDATE"].Value;
//					p_objInfo.m_strThreeMeasureEventName = objXMLDoc.DocumentElement.ChildNodes[i].Attributes["THREEMEASUREEVENTNAME"].Value;
//					p_objInfo.m_strThreeMeasureEventFlag = objXMLDoc.DocumentElement.ChildNodes[i].Attributes["THREEMEASUREEVENTFLAG"].Value;
//					p_objInfo.m_strStatus = objXMLDoc.DocumentElement.ChildNodes[i].Attributes["STATUS"].Value;
//					p_objInfo.m_strDeActivedDate = objXMLDoc.DocumentElement.ChildNodes[i].Attributes["DEACTIVEDDATE"].Value;
//					p_objInfo.m_strOperatorID = objXMLDoc.DocumentElement.ChildNodes[i].Attributes["OPERATORID"].Value;
//				}
            }
        }
        public clsThreeMeasureEventInfo[] m_objGetThreeMeasureEventInfoByType(string p_strFlag)
        {
            string strXML  = "";
            int    intRows = 0;

            clsThreeMeasureEventManagerService m_objThreeMeasureEventManagerServ =
                (clsThreeMeasureEventManagerService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsThreeMeasureEventManagerService));

            long lngRes = 0;

            try
            {
                lngRes = m_objThreeMeasureEventManagerServ.m_lngGetEventItemByType(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, p_strFlag, ref strXML, ref intRows);
            }
            finally
            {
                //m_objThreeMeasureEventManagerServ.Dispose();
            }

            clsThreeMeasureEventInfo[] objInfoArr = null;
            if (lngRes > 0 && intRows > 0)
            {
                objInfoArr = m_objGetThreeMeasureEventInfoFromXml(strXML, intRows);
            }
            else
            {
                objInfoArr = new clsThreeMeasureEventInfo[0];
            }
            return(objInfoArr);
        }
        /// <summary>
        ///
        /// </summary>
        /// <returns>
        /// </returns>
        public clsThreeMeasureEventInfo [] m_objGetThreeMeasureEventInfoArr()
        {
            string strXML  = "";
            int    intRows = 0;

            clsThreeMeasureEventManagerService m_objThreeMeasureEventManagerServ =
                (clsThreeMeasureEventManagerService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsThreeMeasureEventManagerService));

            long lngRes = 0;

            try
            {
                lngRes = m_objThreeMeasureEventManagerServ.m_lngGetAllEvent(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, ref strXML, ref intRows);
            }
            finally
            {
                //m_objThreeMeasureEventManagerServ.Dispose();
            }
            clsThreeMeasureEventInfo[] objInfoArr = null;

            if (lngRes > 0 && intRows > 0)
            {
                objInfoArr = new clsThreeMeasureEventInfo[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)
                        {
                            objInfoArr[intIndex] = new clsThreeMeasureEventInfo();
                            objInfoArr[intIndex].m_strThreeMeasureEventID   = objReader.GetAttribute("THREEMEASUREEVENTID");
                            objInfoArr[intIndex].m_strBeginEventDate        = objReader.GetAttribute("BEGINEVENTDATE");
                            objInfoArr[intIndex].m_strThreeMeasureEventName = objReader.GetAttribute("THREEMEASUREEVENTNAME").Replace("き", "\'");
                            objInfoArr[intIndex].m_strThreeMeasureEventFlag = objReader.GetAttribute("THREEMEASUREEVENTFLAG");
                            objInfoArr[intIndex].m_strStatus        = objReader.GetAttribute("STATUS");
                            objInfoArr[intIndex].m_strDeActivedDate = objReader.GetAttribute("DEACTIVEDDATE");
                            objInfoArr[intIndex].m_strOperatorID    = objReader.GetAttribute("OPERATORID");

                            intIndex++;
                        }
                        break;
                    }
                }
            }
            else
            {
                objInfoArr = new clsThreeMeasureEventInfo[0];
            }

            return(objInfoArr);
        }
        public long m_lngDelete(clsThreeMeasureEventInfo p_objOldInfo, string p_strOperatorID)
        {
            clsThreeMeasureEventManagerService m_objThreeMeasureEventManagerServ =
                (clsThreeMeasureEventManagerService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsThreeMeasureEventManagerService));

            long lngRes = 0;

            try
            {
                lngRes = m_objThreeMeasureEventManagerServ.m_lngDelete(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, m_strMakeOldXml(p_objOldInfo, p_strOperatorID));
            }
            finally
            {
                //m_objThreeMeasureEventManagerServ.Dispose();
            }
            return(lngRes);
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="p_objOldInfo"></param>
        /// <param name="p_strOperatorID">操作者ID</param>
        /// <returns>
        /// 操作结果。

        /// 0,失败。

        /// 1,成功。

        /// </returns>
        ///

        public string m_strGetMaxThreeMeasureEventID()
        {
            clsThreeMeasureEventManagerService m_objThreeMeasureEventManagerServ =
                (clsThreeMeasureEventManagerService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsThreeMeasureEventManagerService));

            string strRes = "";

            try
            {
                strRes = m_objThreeMeasureEventManagerServ.m_strGetMaxThreeMeasureEventID(clsLoginContext.s_ObjLoginContext.m_ObjPrincial);
            }
            finally
            {
                //m_objThreeMeasureEventManagerServ.Dispose();
            }
            return(strRes);
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="p_objOldInfo"></param>
        /// <param name="p_objNewInfo"></param>
        /// <param name="p_strOperatorID">操作者ID</param>
        /// <returns>
        /// 操作结果。

        /// 0,失败。

        /// 1,成功。

        /// </returns>
        public long m_lngModify(clsThreeMeasureEventInfo p_objOldInfo, clsThreeMeasureEventInfo p_objNewInfo, string p_strOperatorID)
        {
            string strOldXml = m_strMakeOldXml(p_objOldInfo, p_strOperatorID);
            string strID     = m_strGetMaxThreeMeasureEventID();

            p_objNewInfo.m_strThreeMeasureEventID = strID;
            string strNewXml = m_strMakeNewXml(p_objNewInfo);

            clsThreeMeasureEventManagerService m_objThreeMeasureEventManagerServ =
                (clsThreeMeasureEventManagerService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(clsThreeMeasureEventManagerService));

            long lngRes = 0;

            try
            {
                lngRes = m_objThreeMeasureEventManagerServ.m_lngModify(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, strOldXml, strNewXml);
            }
            finally
            {
                //m_objThreeMeasureEventManagerServ.Dispose();
            }
            return(lngRes);
        }