using System;
using System.Collections.Generic;
using System.Text;

using Umc.Core;

namespace Umc.Core
{
	public class MessageCode
	{
		/// <summary>
		/// Message.Config ¿¡¼­ ¸Þ½ÃÁö¸¦ °¡Á®¿Â´Ù
		/// ÄÚµå¿¡ ÀÇÇÑ ¸Þ½ÃÁö°¡ ¾øÀ»°æ¿ì code ¸¦ ¸®ÅÏÇÑ´Ù
		/// </summary>
		/// <param name="code"></param>
		/// <returns></returns>
		public static string GetMessageByCode(string code)
		{
			string message	= UmcConfiguration.Message[code];

			return ( message == null ) ? code : message;
		}
		/// <summary>
		/// ÀúÀåµÇ¾ú½À´Ï´Ù
		/// </summary>
		public const string MESSAGE_SAVED				= "message.saved";
		/// <summary>
		/// Æ®·£Àè¼Ç ¿À·ù
		/// </summary>
		public const string ERR_TRANSACTION				= "err.transaction";
	}
}
