Пример #1
0
        private int GetTotalCount(string pstrFilterExpression)
        {
            OperationResult objOperationResult = new OperationResult();
            var             nodeCount          = _objNodeBL.GetNodeCount(ref objOperationResult, pstrFilterExpression);

            if (objOperationResult.Success != 1)
            {
                Alert.ShowInTop("Error en operación:" + System.Environment.NewLine + objOperationResult.ExceptionMessage);
            }

            return(nodeCount);
        }
Пример #2
0
        private bool IsValidNodeName(string pstrNode)
        {
            // Validar existencia de un nodo
            OperationResult objOperationResult6 = new OperationResult();
            string          filterExpression    = string.Format("v_Description==\"{0}\"", pstrNode);
            var             recordCount         = _objNodeBL.GetNodeCount(ref objOperationResult6, filterExpression);

            if (recordCount != 0)
            {
                Alert.ShowInTop("El nombre de nodo  <font color='red'>" + pstrNode + "</font> ya se encuentra registrado.<br> Por favor ingrese otro nombre de nodo.");
                return(false);
            }
            return(true);
        }