コード例 #1
0
        }       //	prepare

        /// <summary>
        ///	Process It
        /// </summary>
        /// <returns>message</returns>
        protected override String DoIt()
        {
            MRequest request = new MRequest(GetCtx(), _R_Request_ID, Get_TrxName());

            log.Info(request.ToString());
            if (request.Get_ID() == 0)
            {
                throw new Exception("@NoRequsetFound@ " + _R_Request_ID);
            }

            request.SetR_Status_ID();           //	set default status
            request.SetProcessed(false);
            if (request.Save() && !request.IsProcessed())
            {
                return("@Created Successfully@");
            }
            return("@Error@");
        } //	doUt