Exemple #1
0
        public override int VerifyItem(
            LibraryHost host,
            string strAction,
            XmlDocument itemdom,
            out string strError)
        {
            strError = "";

            // 执行函数
            try
            {
                return(host.VerifyOrder(strAction,
                                        itemdom,
                                        out strError));
            }
            catch (Exception ex)
            {
                strError = "执行脚本函数 '" + "VerifyOrder" + "' 时出错:" + ExceptionUtil.GetDebugText(ex);
                return(-1);
            }

            // return 0;
        }
Exemple #2
0
        public override int VerifyItem(
            LibraryHost host,
            string strAction,
            XmlDocument itemdom,
            out string strError)
        {
            strError = "";

            // 执行函数
            try
            {
                return(host.VerifyOrder(strAction,
                                        itemdom,
                                        out strError));
            }
            catch (Exception ex)
            {
                strError = "执行脚本函数 '" + "VerifyOrder" + "' 时出错:" + ex.Message;
                return(-1);
            }

            return(0);
        }