예제 #1
0
        private string GetEventValue(string eventKey)
        {
            string         eventValue = string.Empty;
            ReponseMsgText mt         = new ReponseMsgText();

            mt.ToUserName   = reqEvent.FromUserName;
            mt.FromUserName = reqEvent.ToUserName;
            PlanningCertificateMsg pcMsg = new PlanningCertificateMsg();

            switch (eventKey)
            {
            //case "birth":
            //    eventValue =  pcMsg.GetBirthList();
            //    break;
            //case "marriage":
            //    eventValue =  pcMsg.GetMarriageList();
            //    break;
            //case "planning":
            //    eventValue =  pcMsg.GetPlanningList();
            //    break;
            //case "aids":
            //    eventValue =  pcMsg.GetAidsList();
            //    break;
            //case "otherPlanning":
            //    eventValue =  pcMsg.getOtherPlanningMsg();
            //    break;
            //case "oneTwo":
            //    eventValue =  pcMsg.getOneTwoList();
            //    break;
            //case "cooperative":
            //    eventValue =  pcMsg.getCooperativeList();
            //    break;
            //case "reward":
            //    eventValue =  pcMsg.getRewardList();
            //    break;
            //case "law":
            //    eventValue =  pcMsg.GetDefaultMsg();
            //    break;
            //case "activity":
            //    eventValue =  pcMsg.GetDefaultMsg();
            //    break;
            case "phone":
                eventValue = pcMsg.getPhoneServiceMsg();
                break;

            case "online":
                eventValue = pcMsg.getOnlineMsg();
                break;
                //case "health":
                //    eventValue = pcMsg.GetDefaultMsg();
                //    break;
                //case "characteristic":
                //    eventValue =  pcMsg.GetDefaultMsg();
                //    break;
            }
            mt.Content = eventValue;
            return(mt.ToXml());
        }