Пример #1
0
        public RunResultClass Exec()
        {
            RunResultClass ret = new RunResultClass();
            RunNoticeClass rc  = CheckInput();

            if (!rc.Success)
            {
                ret.Notice = rc;
                return(ret);
            }
            return(ret);
        }
Пример #2
0
        /// <summary>
        /// 参数检查
        /// </summary>
        /// <returns></returns>
        public RunNoticeClass CheckInput()
        {
            RunNoticeClass ret = new RunNoticeClass();

            if ((SecsPool == null || SecsPool.Count == 0) && (SecIndex == null || SecIndex.Trim().Length == 0))
            {
                ret.Msg = "备选池和指数不能同时为空!";
                return(ret);
            }
            ret.Success = true;
            return(ret);
        }