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

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

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

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

            return(0);
        }