コード例 #1
0
        public string CancelPlanning(Login login, string TripID)
        {
            IWS.ServiceSoapClient IWSService = InitWS(login);

            IWS.PlanningItemSelection CancelPlanningData = new IWS.PlanningItemSelection()
            {
                ID = TripID,
                PlanningSelectionType = IWS.enumPlanningItemSelectionType.TRIP
            };

            IWS.ExecutionResult PlanningCancelResult = IWSService.Cancel_Planning(iwsLogin(login), CancelPlanningData);

            return(handleError(PlanningCancelResult));
        }
コード例 #2
0
        public string ExecCancelPlaces(Login login, Cancel cancel)
        {
            IWS.ServiceSoapClient IWSService = InitWS(login);
            string strError = "";

            foreach (string PlaceID in cancel.PlaceID)
            {
                IWS.PlanningItemSelection CancelPlanningData = new IWS.PlanningItemSelection()
                {
                    ID = PlaceID,
                    PlanningSelectionType = IWS.enumPlanningItemSelectionType.PLACE
                };

                IWS.ExecutionResult PlanningCancelResult = IWSService.Cancel_Planning(iwsLogin(login), CancelPlanningData);

                strError = handleError(PlanningCancelResult);
            }

            return(strError);
        }