当前位置: 首页>>代码示例>>C#>>正文


C# Business.getZoneID方法代码示例

本文整理汇总了C#中Business.getZoneID方法的典型用法代码示例。如果您正苦于以下问题:C# Business.getZoneID方法的具体用法?C# Business.getZoneID怎么用?C# Business.getZoneID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Business的用法示例。


在下文中一共展示了Business.getZoneID方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: generateEvent

        public void generateEvent(Business.ZoneVO zoneVO, 
Business.AppointmentVO appVO)
        {
            int gpsLocation;
            string[] socialState;
            if (zoneVO != null)
                 gpsLocation = zoneVO.getZoneID(); //is computed from gps location
            else
                gpsLocation = 0;
            if(appVO._Id != null)
                socialState = appVO.getCategoryTab();
            else
                socialState = new string [] {"0","0"};
            string social0 = socialState[0].ToString().ToLower().Trim();
            string social1 = socialState[1].ToString().ToLower().Trim();
            #region 1
            if (gpsLocation == 1) { //Zone 1, Gamle Oslo
                if (social0 == "work" || social1 == "work") {
                        if (social0=="meeting" || social1=="meeting") {
                            createURLNotification("http://www.nith.no",
            appVO);
                        }
                        else if (social0=="preperation" || social1=="preperation") {
                            createURLNotification("url", appVO);
                        }
            else if (social0=="own time" || social1=="owntime") {
                            createURLNotification("url", appVO);
                        }
                }
            if (social0 == "travel" || social1 == "travel") {
                        if (social0=="train" || social1=="train") {
                            createURLNotification("url", appVO);
                        }
            else if (social0=="tube" || social1=="tube") {
                           createURLNotification("url", appVO);
                        }
                        else if (social0=="car" || social1=="car") {
                             createURLNotification("url", appVO);
                        }
            else if (social0=="foot" || social1=="foot") {

            createURLNotification("http://oyafestivalen.com/", appVO);
                        }
                }
                 if (social0 == "leisure" || social1 == "leisure") {
                        if (social0=="shopping" || social1=="shopping") {
                             createURLNotification("url", appVO);
                        }
            else if (social0=="cinema" || social1=="cinema")
            {
                             createURLNotification("url", appVO);
                        }
                        else if (social0=="sparetime" ||
            social1=="sparetime") {
                             createURLNotification("url", appVO);
                        }
            else if (social0=="food" || social1=="food") {
                            createURLNotification("url", appVO);
                        }
                 }
                  }
            #endregion
            #region 2
            else if (gpsLocation == 2) { //Zone 2, Sentrum
               if (social0 == "work" || social1 == "work") {
                     if (social0=="meeting" || social1=="meeting") {
                         createURLNotification("url", appVO);
                        }
                      else if (social0=="preperation" || social1=="preperation") {

            createURLNotification("http://www.regjeringen.no/nb.html?id=4", appVO);
                        }
            else if (social0=="own time" || social1=="own time") {
                            createURLNotification("url", appVO);
                        }
                    }
                if (social0 == "travel" || social1 == "travel") {
                    if (social0 == "train" || social1 == "train") {

            createURLNotification("http://www.nsb.no/internet/jp/trafficdelays/index.jhtml?page=trafficdelays_inc.jhtml", appVO);
                        }
            else if (social0=="tube" || social1=="tube") {
                            createURLNotification("url", appVO);
                        }
            else if (social0=="car" || social1=="car") {
                            createURLNotification("url", appVO);
                        }
            else if (social0=="foot" || social1=="foot") {
                            createURLNotification("url", appVO);
                    }
                }
                 if (social0 == "leisure" || social1 == "leisure") {
                        if (social0=="shopping" || social1=="shopping") {

            createURLNotification("http://www.oslocity.no/site/page.aspx?Page=Forside", appVO);
                        }
            else if (social0=="cinema" || social1=="cinema")
            {
                            createURLNotification("url", appVO);
                        }
//.........这里部分代码省略.........
开发者ID:kavithajagannathan,项目名称:brunelPhD,代码行数:101,代码来源:GenerationHandler.cs


注:本文中的Business.getZoneID方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。