Beispiel #1
0
        //绑定信息
        private void BindInfo()
        {
            ClassLibrary.Model.SystemArticle systemArticleModel = systemArticleBLL.GetModel(articleID);

            dataTitle   = systemArticleModel.Title;
            dataContent = systemArticleModel.Content;
        }
Beispiel #2
0
 private void BindInfo()
 {
     ClassLibrary.BLL.SystemArticle   bll   = new ClassLibrary.BLL.SystemArticle();
     ClassLibrary.Model.SystemArticle model = bll.GetModel((int)SysConfig.SystemArticle.关于我们);
     dataAbout = model.Content.Replace(SysConfig.webSite, SysConfig.webSiteApp);
 }
Beispiel #3
0
        private void BindBooking()
        {
            ClassLibrary.Model.SystemArticle samodel = saBll.GetModel((int)SysConfig.SystemArticle.如何预订);
            if (samodel != null)
            {
                bookinginfo = samodel.Content;
            }
            DateTime dnow = DateTime.Now;

            //StringBuilder sb = new StringBuilder();

            if (route.DateType)
            {
                if (route.DatePrice != "")
                {
                    string[]  dp         = route.DatePrice.Split('|');
                    Hashtable pricetable = new Hashtable();
                    foreach (string pi in dp)
                    {
                        if (pi.Trim() == "")
                        {
                            continue;
                        }
                        string[] dpi     = pi.Split(',');
                        string[] tpd     = dpi[0].Split('-');
                        DateTime tmpDate = new DateTime(Convert.ToInt32(tpd[0]), Convert.ToInt32(tpd[1]), Convert.ToInt32(tpd[2]));
                        if (tmpDate < DateTime.Now)
                        {
                            continue;
                        }
                        pricetable.Add(tmpDate, dpi[1] + "," + dpi[2]);
                    }
                    if (pricetable.Count > 0)
                    {
                        ArrayList priceList = new ArrayList(pricetable.Keys);
                        priceList.Sort();  //从小到大排序
                        //priceList.Reverse(); 顺序反转
                        foreach (DateTime dtitem in priceList)
                        {
                            bookingday = dtitem.Year + "-" + dtitem.Month + "-" + dtitem.Day;
                            string[] cprice = pricetable[dtitem].ToString().Split(',');
                            bookingAdultPrice = Convert.ToInt32(cprice[0]);
                            bookingChildPrice = Convert.ToInt32(cprice[1]);
                            if (bookingAdultPrice != 0)
                            {
                                strAdultPrice = bookingAdultPrice + "元";
                            }
                            break;
                        }
                    }
                }
                if (bookingday == "")
                {
                    dnow       = dnow.AddDays(1);
                    bookingday = dnow.Year + "-" + dnow.Month + "-" + dnow.Day;
                }
            }
            else
            {
                dnow              = dnow.AddDays(1);
                bookingday        = dnow.Year + "-" + dnow.Month + "-" + dnow.Day;
                bookingAdultPrice = Convert.ToInt32(route.Price);
                bookingChildPrice = Convert.ToInt32(route.ChildPrice);
                if (bookingAdultPrice != 0)
                {
                    strAdultPrice = bookingAdultPrice + "元";
                }
            }
        }
Beispiel #4
0
 private void BindInfo()
 {
     ClassLibrary.BLL.SystemArticle bll = new ClassLibrary.BLL.SystemArticle();
     model = bll.GetModel(systemArticleID);
 }