public static string GetMsg(decimal i_MsgNumber)
{
string v_strValue = null;
string v_strWhere = "ID=" + i_MsgNumber;
if(!m_IntialedClass)
{
InitClass(c_strUserFileName);
}
LoadMessagesData(i_MsgNumber);
DataView v_dvMessage = new DataView(m_DataSet.Message, v_strWhere, "", DataViewRowState.CurrentRows);
if(v_dvMessage.Count > 0)
{
v_strValue = Convert.ToString(v_dvMessage[0]["Message"]);
}
else
{
v_strValue = "Chương trình chưa tìm thấy nội dung thông báo! Bạn vui lòng liên hệ với đội IT để sửa nhé!";
}
return v_strValue;
}