Example #1
0
        /// <summary>
        /// 获取新的rcid文本
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public static string GetNewRcId(this PinhuaContext context)
        {
            var newId = context.GetNewId(26, 1);
            var rcId  = "rc" + DateTime.Now.ToString("yyyyMMdd") + newId.ToString("D5");

            return(newId == 0 ? "" : rcId);
        }