protected bool GET_MSG(string messageID, out string message1, out string message2, out string message3)
        {
            Message_BL  message_bl = new Message_BL();
            SMSG_Entity smsg_data  = new SMSG_Entity();

            smsg_data.MSGID = messageID.Substring(1);
            smsg_data.MSGSB = messageID.Substring(0, 1);
            return(message_bl.SMSG_Select(smsg_data, out message1, out message2, out message3));
        }
Exemplo n.º 2
0
        public DataTable SMSG_Select(SMSG_Entity smsg_data)
        {
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic.Add("@MSGSB", smsg_data.MSGSB);
            dic.Add("@MSGID", smsg_data.MSGID);

            return(SelectData(dic, "SMSG_Select"));
        }
        public bool SMSG_Select(SMSG_Entity smsg_data, out string message1, out string message2, out string message3)
        {
            DataTable dt          = smsg_dl.SMSG_Select(smsg_data);
            bool      returnValue = false;

            if (dt.Rows.Count > 0)
            {
                message1    = dt.Rows[0]["MSG01"].ToString();
                message2    = dt.Rows[0]["MSG02"].ToString();
                message3    = dt.Rows[0]["MSG03"].ToString();
                returnValue = true;
            }
            else
            {
                message1 = message2 = message3 = string.Empty;
            }

            return(returnValue);
        }