Ejemplo n.º 1
0
        /// <summary>
        /// Print a new ticket
        /// </summary>
        /// <param name="eTicket">pass TicketInfo struct</param>
        /// <returns></returns>
        public bool PrintTicket(TicketInfo eTicket)
        {
            bool retVal = false;

            try
            {
                if (eTicket.XMLLayout.ToUpper() == "BALLYISSUETICKET")
                {
                    CXMLParse parse = new CXMLParse();
                    parse.LoadXml(eTicket.XMLData);
                    LogManager.WriteLog("Start Printing...", LogManager.enumLogLevel.Debug);

                    switch (_CurrentVersion)
                    {
                    case "PP8522":
                        retVal = BallyTicketPP8522(parse);
                        break;

                    case "PP8576":     //New Version
                        retVal = BallyTicketPP8576(parse);
                        break;

                    default:
                        retVal = BallyTicketPP8576(parse);
                        break;
                    }

                    LogManager.WriteLog("End Printing", LogManager.enumLogLevel.Debug);
                }
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
            return(retVal);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Print a new ticket
        /// </summary>
        /// <param name="eTicket">pass TicketInfo struct</param>
        /// <returns></returns>
        public bool PrintTicket(TicketInfo eTicket)
        {
            bool retVal = false;
            try
            {

                if (eTicket.XMLLayout.ToUpper() == "BALLYISSUETICKET")
                {
                    CXMLParse parse = new CXMLParse();
                    parse.LoadXml(eTicket.XMLData);
                    LogManager.WriteLog("Start Printing...", LogManager.enumLogLevel.Debug);

                    switch (_CurrentVersion)
                    {
                        case "PP8522":
                            retVal = BallyTicketPP8522(parse);
                            break;
                        case "PP8576": //New Version
                            retVal = BallyTicketPP8576(parse);
                            break;
                        default:
                            retVal = BallyTicketPP8576(parse);
                            break;

                    }

                    LogManager.WriteLog("End Printing", LogManager.enumLogLevel.Debug);
                }
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);

            }
            return retVal;
        }