Пример #1
0
        public String FillSurvey(SurveyBaseInfo sbi, int option)
        {
            if (sbi.TravelRecord.OnBoardStation[0] == '#')
            {
                return("0#票面乘车站" + sbi.TravelRecord.OnBoardStation.Substring(1) + "未能被翻译为电报码,请检查站名是否准确\n");
            }
            if (sbi.TravelRecord.OffBoardStation[0] == '#')
            {
                return("0#票面下车站" + sbi.TravelRecord.OffBoardStation.Substring(1) + "未能被翻译为电报码,请检查站名是否准确\n");
            }
            String passengerInfoAnswer = sbi.WrapSurveyBaseInfo();
            String questionRadioAnswer = "";

            if (option == 0)
            {
                questionRadioAnswer = "{1:007,2:027,3:007,4:007,5:007,6:074,7:037,8:017,9:017,10:017,11:007,12:007,13:017,14:037,15:017,16:127,17:057,18:017,19:007,20:017,21:017,22:017,23:017,24:017,25:007,26:017,27:017,28:017,29:017,30:017,31:017,32:017,33:017,34:017,35:057,36:087,37:017,38:017,39:017,40:017,41:007,42:017,43:017,44:017,45:017,46:017,47:017,48:017,49:017,50:007,51:017,52:017,53:017,54:017,55:017,56:017,57:017,58:017,59:017,60:017,61:017,62:017,63:017,64:017,65:087,66:057,67:017,68:017,69:017,70:097,71:017,72:017,73:017,74:017,75:017,76:067,77:117,101:225,102:204,103:207,104:227,105:213}";
            }
            else
            {
                questionRadioAnswer = "{1:005,3:005,6:073,7:033,15:004,16:004,17:004,18:004,20:004,21:004,22:004,26:004,30:004,31:004,36:004,37:004,38:004,39:004,40:004,42:015,44:004,45:004,46:004,51:004,52:013,55:013,56:013,63:004,64:004,65:004,66:004,67:004,68:004,70:004,73:004,74:004,75:004,76:004,77:004,101:225,102:202,103:209,104:222,105:213}";
            }
            String otherAnswer = "{78:购票的方便程度/车站的旅客引导信息/进站上车的过程/,79:,80:,81:车票的价格/}";
            String PostData    = "passengerInfoAnswer=" + passengerInfoAnswer + "&questionRadioAnswer=" + questionRadioAnswer + "&otherAnswer=" + otherAnswer;
            String msg;

            //msg = PostRequest("http://dynamic.12306.cn/surweb/questionnaireAction.do?method=submitQuest", PostData);
            msg = wc.PostSurvey(PostData);
            return(msg);
        }
Пример #2
0
 public String FillSurvey(SurveyBaseInfo sbi, int option, String province = "上海/上海")
 {
     String passengerInfoAnswer = sbi.WrapSurveyBaseInfo(province);
     String questionRadioAnswer = "";
     if (option == 0)
     {
         questionRadioAnswer = "{1:007,2:027,3:007,4:007,5:007,6:036,7:007,8:017,9:017,10:007,11:037,12:006,13:056,14:016,15:016,16:016,17:016,18:016,19:007,20:017,21:017,22:017,23:017,24:017,25:017,26:017,27:017,28:017,29:016,30:007,31:016,32:016,33:016,34:016,35:056,36:056,37:017,38:017,39:017,40:017,41:006,42:017,43:017,44:017,45:017,46:016,47:016,48:086,49:017,50:017,51:017,52:067,53:117,54:017,102:205,104:222,105:213,106:231}";
     }
     else
     {
         questionRadioAnswer = "{1:005,2:024,3:004,4:005,5:005,6:035,7:003,8:013,9:013,10:005,11:034,12:005,13:054,14:013,15:014,16:013,17:013,18:013,19:004,20:013,21:015,22:015,23:015,24:013,25:013,26:014,27:015,28:015,29:014,30:003,31:013,32:013,33:014,34:014,35:054,36:053,37:015,38:015,39:016,40:014,41:005,42:013,43:014,44:015,45:015,46:014,47:014,48:084,49:014,50:013,51:014,52:064,53:114,54:014,102:205,104:222,105:213,106:231}";
     }
     String otherAnswer = "{55:购票的方便程度/车站的购票等待时间/列车内的环境卫生/,56:购票的方便程度/车站的购票等待时间/站台的等待秩序/,57:列车内的环境卫生/列车提供用品的补充情况/出站的验票服务/}";
     String PostData = "passengerInfoAnswer=" + passengerInfoAnswer + "&questionRadioAnswer=" + questionRadioAnswer + "&otherAnswer=" + otherAnswer;
     String msg;
     //msg = PostRequest("http://dynamic.12306.cn/surweb/questionnaireAction.do?method=submitQuest", PostData);
     msg = wc.PostSurvey(PostData);
     return msg;
 }