Ejemplo n.º 1
0
        public string m_strGetRecordCount()
        {
            int    p_intReturnRows = 0;
            string strReceivedXML  = "";
            string strValue        = "";

            com.digitalwave.EquipmentTypeService.clsEquipmentTypeService objETServ =
                (com.digitalwave.EquipmentTypeService.clsEquipmentTypeService)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.EquipmentTypeService.clsEquipmentTypeService));

            try
            {
                long lngSucc = objETServ.m_lngGetRecordCount(clsLoginContext.s_ObjLoginContext.m_ObjPrincial, ref strReceivedXML, ref p_intReturnRows);
                if (p_intReturnRows == 1)
                {
                    System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
                    doc.LoadXml(strReceivedXML);
                    strValue = doc.FirstChild.ChildNodes[0].Attributes["ROW"].Value;
                }
            }
            finally
            {
                //objETServ.Dispose();
            }
            return(strValue);
        }