Example #1
0
        static public String obtainParserName(PARSER_TYPE _parser_type)
        {
            switch (_parser_type)
            {
            case PARSER_TYPE.BAEMIN:
                return("배달의민족");

            case PARSER_TYPE.OKPOS:
                return("OKPOS(오케이포스)");

            case PARSER_TYPE.DELGEN:
                return("배달천재");

            case PARSER_TYPE.POSFEED:
                return("포스피드");

            case PARSER_TYPE.EASYPOS:
                return("이지포스");

            case PARSER_TYPE.YOGIYO:
                return("요기요");

            case PARSER_TYPE.BEDALTONG:
                return("배달통");

            case PARSER_TYPE.ETC:
                return("기타");

            case PARSER_TYPE.UNKNOWN:
                return("[출력만사용]");
            }
            return("-");
        }
Example #2
0
        protected void setParserType(PARSER_TYPE _parser_type)
        {
            ModelAppDevice device = new ModelAppDevice();

            if (device != null)
            {
                string temp = device.readConfigString("TEMP_PORTNAME", "temp_portname");
                Debug.WriteLine("들어온 포트 temp : " + temp);

                for (int i = 0; i < 4; i++)
                {
                    if (temp == device.readConfigString("CONFIG_ORDER_INPUT", "listen_port_num_" + i.ToString()))
                    {
                        Debug.WriteLine("읽어온 포트 temp : " + device.readConfigString("CONFIG_ORDER_INPUT", "input_type_" + i.ToString()));
                        m_parser_type = (PARSER_TYPE)Int32.Parse(device.readConfigString("CONFIG_ORDER_INPUT", "input_type_" + i.ToString()));
                    }
                }
            }

            //m_parser_type = _parser_type;
        }