예제 #1
0
        /// <summary>
        /// 初始化栏目
        /// </summary>
        private void InitClass()
        {
            slt_ParentClassName.Items.Add(new ListItem("站点顶级栏目", "0"));
            DataTable dtClass = bllClass.GetDropList("");

            DropDownTree.BindToDropDownList(slt_ParentClassName, dtClass, "0");
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.Label1.Text = "从缓存中获取xml方法:";
            this.Label2.Text = "从缓存中直接获取:";

            Response.Write(DateTime.Now.ToString("yyyy/MM/dd mm:ss"));

            BLL.Arc_ClassBLL b  = new DTCMS.BLL.Arc_ClassBLL();
            DataTable        dt = b.GetDropList("");

            DropDownTree.BindToDropDownList(DropDownList1, dt, "0");
        }
예제 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Ajax.RegMethod(AddTuanGou);

            cityList = CityDAO.Instance.GetCityList();
            DataTable category = CategoryDAO.Instance.GetDataList();

            DropDownTree.BindToDropDownList(ddl_Category, category, "0");

            tuanID = Utils.GetQueryInt("ID");
            if (tuanID > 0)
            {
                TuanGou tuanGou = TuanGouDAO.Instance.GetModel(tuanID);
                if (tuanGou != null)
                {
                    txt_Title.Value           = tuanGou.Title;
                    cityID                    = tuanGou.CityID;
                    hid_SiteID.Value          = tuanGou.SiteID.ToString();
                    ddl_Category.Value        = tuanGou.CategoryID.ToString();
                    txt_Description.Value     = tuanGou.Description;
                    txt_MarketPrice.Value     = tuanGou.MarketPrice.ToString();
                    txt_TuanPrice.Value       = tuanGou.TuanPrice.ToString();
                    txt_Rebate.Value          = tuanGou.Rebate.ToString();
                    txt_TotalCount.Value      = tuanGou.TotalCount.ToString();
                    txt_BuyCount.Value        = tuanGou.BuyCount.ToString();
                    txt_ClickCount.Value      = tuanGou.ClickCount.ToString();
                    txt_CommentCount.Value    = tuanGou.CommentCount.ToString();
                    txt_PointCount.Value      = tuanGou.PointCount.ToString();
                    txt_BeginTime.Value       = tuanGou.BeginTime.ToString();
                    txt_EndTime.Value         = tuanGou.EndTime.ToString();
                    txt_TuanUrl.Value         = tuanGou.TuanUrl;
                    txt_ImageThumbUrl.Value   = tuanGou.ImageThumbUrl;
                    txt_ImageUrl.Value        = tuanGou.ImageUrl;
                    txt_MerchantName.Value    = tuanGou.MerchantName;
                    txt_MerchantAddress.Value = tuanGou.MerchantAddress;
                    txt_MerchantPhone.Value   = tuanGou.MerchantPhone;
                    txt_Longitude.Value       = tuanGou.Longitude.ToString();
                    txt_Latitude.Value        = tuanGou.Latitude.ToString();
                    txt_Rank.Value            = tuanGou.Rank.ToString();
                    hid_Statu.Value           = tuanGou.Statu.ToString();
                    txt_OrderID.Value         = tuanGou.OrderID.ToString();
                }
            }
        }