public ActionResult GetRegions(string id) { RegionBLL regionBLL = new RegionBLL(WebApp.Connector); IEnumerable <RegionDTO> regions = regionBLL.ReadByCountry(id); return(Json(regions)); }
/// <summary> /// Author: Charlene Remotigue /// Date Created: 09/05/2012 /// Description: load region seaport page /// ------------------------------------- /// Modified By: Josephine Gad /// Date Modified: 01/06/2012 /// Description: Add Session["ContinentList"] and Session["RegionSeaportList"] /// </summary> protected void LoadRegionPage() { string strLogDescription = ""; string strFunction = ""; if (uoHiddenFieldRegion.Value != "0") { strLogDescription = "Edit linkbutton for region editor clicked."; } else { strLogDescription = "Add button for region editor clicked."; } strFunction = "LoadRegionPage"; DateTime dateNow = CommonFunctions.GetCurrentDateTime(); RegionBLL.LoadRegionPage(GlobalCode.Field2Int(uoHiddenFieldRegion.Value), strLogDescription, strFunction, Path.GetFileName(Request.UrlReferrer.AbsolutePath), CommonFunctions.GetDateTimeGMT(dateNow), DateTime.Now, GlobalCode.Field2String(Session["UserName"])); Session["ContinentList"] = RegionClass.ContinentList; Session["RegionSeaportList"] = RegionClass.RegionSeaportList; BindContinent(); BindRegionSeaport(true); uoSeaportList.DataSource = null; uoSeaportList.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { /// <summary> /// Carga los datos si se requiere actualiar o editar /// </summary> if (!IsPostBack) { if (Request.QueryString["id"] != null) { lblTitulo.Text = "Modificar Recinto"; RecintoBLL recintoBLL = new RecintoBLL(); RecintoBEL recBEL = recintoBLL.traerRecintoPorId(Int32.Parse(Request.QueryString["id"])); ClienteBLL cliBLL = new ClienteBLL(); txtNombre.Text = recBEL.NombreRecinto; txtDireccion.Text = recBEL.DireccionRecinto; idRecinto.Text = recBEL.IdRecinto.ToString(); lblEstado.Text = recBEL.IdEstado.ToString(); comuna = recBEL.IdComuna; clicomuna = cliBLL.traerComuna(comuna); cliregion = cliBLL.traerRegion(clicomuna.IdRegion); } RegionBLL regionBLL = new RegionBLL(); List <RegionBEL> regBEL = regionBLL.traerRegiones(); ddlRegion.DataSource = regBEL; ddlRegion.DataValueField = "IdRegion"; ddlRegion.DataTextField = "Nombre"; ddlRegion.DataBind(); ddlRegion.Items.Insert(0, new ListItem(cliregion.Nombre, clicomuna.IdRegion.ToString())); ddlComuna.Items.Insert(0, new ListItem(clicomuna.Nombre, clicomuna.IdComuna.ToString())); } }
protected override void PageLoad() { base.PageLoad(); string action = StringHelper.AddSafe(RequestHelper.GetQueryString <string>("Action")); if (action == "Submit") { this.Submit(); } if (action == "CheckPoint") { this.CheckPoint(); } int id = RequestHelper.GetQueryString <int>("Id"); if (base.UserId == 0) { string redirectUrl = string.IsNullOrEmpty(isMobile) ? "/user/login.html?RedirectUrl=/gift/exchange/" + id.ToString() + ".html" : "/mobile/login.html?RedirectUrl=/mobile/gift/exchange/" + id.ToString() + ".html"; ResponseHelper.Redirect(redirectUrl); ResponseHelper.End(); } CurrentUser = UserBLL.Read(base.UserId); Gift = PointProductBLL.Read(id); userPoint = UserAccountRecordBLL.SumPoint(base.UserId); singleUnlimitClass.DataSource = RegionBLL.ReadRegionUnlimitClass(); singleUnlimitClass.ClassID = "|1" + CurrentUser.RegionId; Title = Gift.Name + " - 奖品兑换"; }
protected override void PageLoad() { base.PageLoad(); string action = RequestHelper.GetQueryString <string>("Action"); if (action == "SelectShipping") { this.SelectShipping(); } string idList = CookiesHelper.ReadCookieValue("usr_region"); if (string.IsNullOrEmpty(idList)) { string city = StringHelper.AddSafe(RequestHelper.GetQueryString <string>("city")); if (!string.IsNullOrEmpty(city)) { idList = RegionBLL.ReadRegionIdList(city); CookiesHelper.AddCookie("usr_region", idList, 1, TimeType.Year); } } singleUnlimitClass.DataSource = RegionBLL.ReadRegionUnlimitClass(); singleUnlimitClass.ClassID = idList; singleUnlimitClass.FunctionName = "readShippingMoney()"; }
protected override void PageLoad() { base.PageLoad(); this.userAddressList = UserAddressBLL.ReadUserAddressByUser(base.UserID); this.singleUnlimitClass.DataSource = RegionBLL.ReadRegionUnlimitClass(); string queryString = RequestHelper.GetQueryString <string>("Action"); if (queryString != null) { if (!(queryString == "Update")) { if (queryString == "Delete") { UserAddressBLL.DeleteUserAddress(RequestHelper.GetQueryString <string>("ID"), base.UserID); ResponseHelper.Write("ok"); ResponseHelper.End(); } } else { int id = RequestHelper.GetQueryString <int>("ID"); this.userAddress = UserAddressBLL.ReadUserAddress(id, base.UserID); this.singleUnlimitClass.ClassID = this.userAddress.RegionID; } } }
protected override void PageLoad() { base.PageLoad(); string action = RequestHelper.GetQueryString <string>("Action"); switch (action) { case "Add": Add(); break; case "Delete": Delete(); break; case "Read": Read(); break; } int id = RequestHelper.GetQueryString <int>("id"); userAddress = UserAddressBLL.Read(id, base.UserId); singleUnlimitClass.DataSource = RegionBLL.ReadRegionUnlimitClass(); singleUnlimitClass.ClassID = userAddress.RegionId; userAddressList = UserAddressBLL.ReadList(base.UserId); }
protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsPostBack) { this.UserGrade.DataSource = UserGradeBLL.ReadUserGradeCacheList(); this.UserGrade.DataTextField = "Name"; this.UserGrade.DataValueField = "ID"; this.UserGrade.DataBind(); this.RegionID.DataSource = RegionBLL.ReadRegionUnlimitClass(); int queryString = RequestHelper.GetQueryString <int>("ID"); if (queryString != -2147483648) { base.CheckAdminPower("ReadFavorableActivity", PowerCheckType.Single); this.favorableActivity = FavorableActivityBLL.ReadFavorableActivity(queryString); this.Photo.Text = this.favorableActivity.Photo; this.Name.Text = this.favorableActivity.Name; this.Content.Text = this.favorableActivity.Content; this.StartDate.Text = this.favorableActivity.StartDate.ToString("yyyy-MM-dd"); this.EndDate.Text = this.favorableActivity.EndDate.ToString("yyyy-MM-dd"); ControlHelper.SetCheckBoxListValue(this.UserGrade, this.favorableActivity.UserGrade); this.OrderProductMoney.Text = this.favorableActivity.OrderProductMoney.ToString(); this.RegionID.ClassIDList = this.favorableActivity.RegionID; this.ReduceMoney.Text = this.favorableActivity.ReduceMoney.ToString(); this.ReduceDiscount.Text = this.favorableActivity.ReduceDiscount.ToString(); if (this.favorableActivity.GiftID != string.Empty) { GiftSearchInfo gift = new GiftSearchInfo(); gift.InGiftID = this.favorableActivity.GiftID; this.giftList = GiftBLL.SearchGiftList(gift); } } } }
private void BindCmbSubRegion() { RegionBLL bll = new RegionBLL(); //RegionBLL bll = new RegionBLL(); //DataTable dt = bll.GetSubRegionList(this.jccmbRegion.SelectedValue.ToString()); //this.jccmbSubRegion.DisplayMember = "Region"; //this.jccmbSubRegion.ValueMember = "Code"; //this.jccmbSubRegion.DataSource = dt; #region 根据品牌限制过滤子区域 --modify on 20170522 by Lingjia Qiu DataTable dt = bll.GetSubRegionList(this.jccmbRegion.SelectedValue.ToString()); List <string> regionList = getRegionListByBrandLimit(dt); this.jccmbSubRegion.DisplayMember = "Region"; this.jccmbSubRegion.ValueMember = "Code"; if (regionList != null && regionList.Count != 0) { DataView dv = new DataView(dt); string regionStr = ""; foreach (string s in regionList) { regionStr += "'" + s + "',"; } regionStr = regionStr.Substring(0, regionStr.Length - 1); dv.RowFilter = "Code not in (" + regionStr + ")"; this.jccmbSubRegion.DataSource = dv; } else { this.jccmbSubRegion.DataSource = dt; } #endregion }
protected override void PageLoad() { base.PageLoad(); string action = RequestHelper.GetQueryString <string>("Action"); switch (action) { case "CheckUserName": CheckUser("用户名"); break; case "CheckMobile": CheckUser("手机号码"); break; case "Submit": Submit(); break; } //如果用户已订购过商品,则用户名不能再被修改 if (OrderBLL.ReadCount(base.UserId) > 0) { canChangeUserName = false; } regionId.DataSource = RegionBLL.ReadRegionUnlimitClass(); regionId.ClassID = CurrentUser.RegionId; }
/// <summary> /// 页面加载 /// </summary> protected override void PageLoad() { base.PageLoad(); userAddressList = UserAddressBLL.ReadList(base.UserId); singleUnlimitClass.DataSource = RegionBLL.ReadRegionUnlimitClass(); string action = RequestHelper.GetQueryString <string>("Action"); switch (action) { case "Update": int id = RequestHelper.GetQueryString <int>("ID"); userAddress = UserAddressBLL.Read(id, base.UserId); singleUnlimitClass.ClassID = userAddress.RegionId; break; case "Delete": string deleteID = RequestHelper.GetQueryString <string>("ID"); UserAddressBLL.Delete(deleteID, base.UserId); ResponseHelper.Write("ok"); ResponseHelper.End(); break; default: break; } }
private void AddEditProperty_BasePost(Connector connector, PropertyDTO property) { RegionBLL regionBLL = new RegionBLL(connector); ProvinceBLL provinceBLL = new ProvinceBLL(connector); DistrictBLL districtBLL = new DistrictBLL(connector); CountryDTO country = property.Country; RegionDTO region = property.Region; ProvinceDTO province = property.Province; DistrictDTO district = property.District; if (country != null) { country.Regions = regionBLL.ReadByCountry(country.Id); if (region != null) { region.Country = country; } if (province != null) { province.Country = country; } if (district != null) { district.Country = country; } } if (region != null) { region.Provinces = provinceBLL.ReadByCountryAndRegion(country.Id, region.Code); } if (province != null) { province.Districts = districtBLL.ReadByCountryAndRegionAndProvince(country.Id, region.Code, province.Code); } }
/// <summary> /// 页面加载 /// </summary> protected override void PageLoad() { base.PageLoad(); user = UserBLL.Read(base.UserId); userGradeName = UserGradeBLL.Read(base.GradeID).Name; singleUnlimitClass.DataSource = RegionBLL.ReadRegionUnlimitClass(); singleUnlimitClass.ClassID = user.RegionId; }
private void BindCmbRegion() { RegionBLL bll = new RegionBLL(); DataTable dt = bll.GetParentRegionTable(); this.jccmbRegion.DisplayMember = "Region"; this.jccmbRegion.ValueMember = "Code"; this.jccmbRegion.DataSource = dt; }
protected void Page_Load(object sender, EventArgs e) { /// <summary> /// /// </summary> if (!IsPostBack) { Session["Captcha"] = null; txtDireccionNegocio.Visible = false; lblDireccionNegocio.Visible = false; lblNumeroNegocio.Visible = false; txtNumeroNegocio.Visible = false; lblComunaNegocio.Visible = false; ddlComunaNegocio.Visible = false; lblRegionNegocio.Visible = false; ddlRegionNegocio.Visible = false; fru.WebServicePruebaSoapClient service = new fru.WebServicePruebaSoapClient(); // ArrayList regBEL = new ArrayList(); // string regBEL = service.Regiones().ToString(); RegionBLL regionBLL = new RegionBLL(); //string asd = regionBLL.traerRegiones1(); List <RegionBEL> regBEL = regionBLL.traerRegiones1(); /*DataSet ds = service.Regiones(); * var myData = ds.Tables[0].AsEnumerable().Select(r => new * { * column1 = r.Field<int>("ID_REGION"), * column2 = r.Field<string>("NOMBRE") * }); * var list = myData.ToList();*/ ddlRegion.DataSource = regBEL; ddlRegion.DataValueField = "IdRegion"; ddlRegion.DataTextField = "Nombre"; ddlRegion.DataBind(); ddlRegion.Items.Insert(0, new ListItem("..Seleccione..", "-1")); ddlRegionNegocio.DataSource = regBEL; ddlRegionNegocio.DataValueField = "IdRegion"; ddlRegionNegocio.DataTextField = "Nombre"; ddlRegionNegocio.DataBind(); ddlRegionNegocio.Items.Insert(0, new ListItem("..Seleccione..", "-1")); //InteresBLL inteBLL = new InteresBLL(); //List<InteresBEL> interesesBEL = inteBLL.traerIntereses(); //chkIntereses.DataSource = interesesBEL; //chkIntereses.DataValueField = "IdInteres"; //chkIntereses.DataTextField = "Descripcion"; //chkIntereses.DataBind(); } }
/// <summary> /// 读取地区数据 /// </summary> protected void ReadRegion() { CheckAdminPower("ReadProduct", PowerCheckType.Single); id = RequestHelper.GetQueryString <int>("ID"); if (id > 0) { name = RegionBLL.ReadRegionCache(id).RegionName; } regionList = RegionBLL.ReadRegionChildList(id); }
protected void ReadRegion() { base.CheckAdminPower("ReadRegion", PowerCheckType.Single); this.id = RequestHelper.GetQueryString <int>("ID"); if (this.id > 0) { this.name = RegionBLL.ReadRegionCache(this.id).RegionName; } this.regionList = RegionBLL.ReadRegionChildList(this.id); }
protected override void PageLoad() { base.PageLoad(); singleUnlimitClass.DataSource = RegionBLL.ReadRegionUnlimitClass(); singleUnlimitClass1.DataSource = RegionBLL.ReadRegionUnlimitClass(); singleUnlimitClass1.Prefix = "singclass1"; if (RequestHelper.GetQueryString <string>("Action") == "UseMessage") { UseMessage(); } //singleUnlimitClass.ClassID; }
/// <summary> /// 更新一条地区数据 /// </summary> protected void UpdateRegion() { CheckAdminPower("ReadProduct", PowerCheckType.Single); RegionInfo region = new RegionInfo(); region.ID = RequestHelper.GetQueryString <int>("ID"); region.FatherID = RegionBLL.ReadRegionCache(region.ID).FatherID; region.RegionName = RequestHelper.GetQueryString <string>("Name"); RegionBLL.UpdateRegion(region); AdminLogBLL.Add(ShopLanguage.ReadLanguage("UpdateRecord"), ShopLanguage.ReadLanguage("Region"), region.ID); Response.End(); }
/// <summary> /// 增加一条地区数据 /// </summary> protected void AddRegion() { CheckAdminPower("ReadProduct", PowerCheckType.Single); RegionInfo region = new RegionInfo(); region.FatherID = RequestHelper.GetQueryString <int>("FatherID"); region.RegionName = RequestHelper.GetQueryString <string>("RegionName"); int id = RegionBLL.AddRegion(region); AdminLogBLL.Add(ShopLanguage.ReadLanguage("AddRecord"), ShopLanguage.ReadLanguage("Region"), id); ResponseHelper.End(); }
/// <summary> /// 页面加载 /// </summary> protected override void PageLoad() { base.PageLoad(); user = UserBLL.Read(base.UserId); //userGradeName = UserGradeBLL.Read(base.GradeID).Name; singleUnlimitClass.DataSource = RegionBLL.ReadRegionUnlimitClass(); singleUnlimitClass.ClassID = (!string.IsNullOrEmpty(user.RegionId))?user.RegionId:"|1|"; if (RequestHelper.GetQueryString <string>("Action") == "UploadPhoto") { UploadPhoto(); } }
/// <summary> /// Date Created: 04/05/2012 /// Created By: Josephine Gad /// (description) Get list Region not yet added to this Region /// -------------------------------------------- /// </summary> /// <param name="IsNewLoad"></param> private void BindSeaportToAdd(bool IsNewLoad) { List <RegionSeaportNotExists> list = null; List <RegionSeaport> listRegionSeaport = new List <RegionSeaport>(); if (Session["RegionSeaportList"] != null) { listRegionSeaport = (List <RegionSeaport>)Session["RegionSeaportList"]; } try { int RegionID = GlobalCode.Field2Int(uoHiddenFieldRegion.Value); int CountryID = GlobalCode.Field2Int(uoDropDownListCountry.SelectedValue); int ContinentID = GlobalCode.Field2Int(uoDropDownListContinent.SelectedValue); if (IsNewLoad || Session["RegionSeaportToAdd"] == null) { list = RegionBLL.GetSeaportNotExistsInRegion(RegionID, ContinentID, CountryID, uoTextBoxSeaport.Text); var regionAdded = (from a in listRegionSeaport//RegionClass.RegionSeaportList where a.CountryID == CountryID select new { RegionSeaportID = a.RegionSeaportID, RegionID = a.RegionID, CountryID = a.CountryID, SeaportID = a.SeaportID, SeaportName = a.SeaportName, }).ToList(); // RegionSeaportNotExists.RegionSeaportToAdd = list; //RegionSeaportNotExists.RegionSeaportToAdd.RemoveAll(a => regionAdded.Exists(b => a.SeaportID == b.SeaportID)); list.RemoveAll(a => regionAdded.Exists(b => a.SeaportID == b.SeaportID)); Session["RegionSeaportToAdd"] = list; } else { list = (List <RegionSeaportNotExists>)Session["RegionSeaportToAdd"]; } uoSeaportList.DataSource = list;//RegionSeaportNotExists.RegionSeaportToAdd; uoSeaportList.DataBind(); } catch (Exception ex) { throw ex; } finally { if (list != null) { list = null; } } }
protected void UpdateRegion() { RegionInfo info; base.CheckAdminPower("UpdateRegion", PowerCheckType.Single); info = new RegionInfo(); info.ID = RequestHelper.GetQueryString <int>("ID"); info.FatherID = RegionBLL.ReadRegionCache(info.ID).FatherID; info.RegionName = RequestHelper.GetQueryString <string>("Name"); RegionBLL.UpdateRegion(info); AdminLogBLL.AddAdminLog(ShopLanguage.ReadLanguage("UpdateRecord"), ShopLanguage.ReadLanguage("Region"), info.ID); base.Response.End(); }
protected override void PageLoad() { base.PageLoad(); this.singleUnlimitClass.DataSource = RegionBLL.ReadRegionUnlimitClass(); this.singleUnlimitClass.FunctionName = "readShippingList()"; int queryString = RequestHelper.GetQueryString <int>("ID"); if (queryString > 0) { this.userAddress = UserAddressBLL.ReadUserAddress(queryString, base.UserID); this.singleUnlimitClass.ClassID = this.userAddress.RegionID; } }
/// <summary> /// 页面加载 /// </summary> protected override void PageLoad() { base.PageLoad(); singleUnlimitClass.DataSource = RegionBLL.ReadRegionUnlimitClass(); singleUnlimitClass.FunctionName = "readShippingList()"; int id = RequestHelper.GetQueryString <int>("ID"); if (id > 0) { userAddress = UserAddressBLL.Read(id, base.UserId); singleUnlimitClass.ClassID = userAddress.RegionId; } }
protected override void PageLoad() { base.PageLoad(); int id = RequestHelper.GetQueryString <int>("id"); userAddress = UserAddressBLL.Read(id, base.UserId); singleUnlimitClass.DataSource = RegionBLL.ReadRegionUnlimitClass(); singleUnlimitClass.ClassID = userAddress.RegionId; Title = "收货地址"; }
public ActionResult GetAddressById(int id) { var item = UserAddressBLL.Read(id, uid); VirtualAddress newaddress = new VirtualAddress(); newaddress.id = item.Id; newaddress.name = item.Consignee; newaddress.address = item.Address; newaddress.mobile = item.Mobile; newaddress.isdefault = Convert.ToBoolean(item.IsDefault); newaddress.regionnames = string.Join(",", RegionBLL.RegionNameList(item.RegionId).Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).Skip(1)); return(Json(new { address = newaddress }, JsonRequestBehavior.AllowGet)); }
/// <summary> /// 页面加载方法 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { CheckAdminPower("ReadProduct", PowerCheckType.Single); RegionID.DataSource = RegionBLL.ReadRegionUnlimitClass(); RegionID.ClassID = "|1|27|607|"; foreach (ProductClassInfo productClass in ProductClassBLL.ReadNamedList()) { ClassID.Items.Add(new ListItem(productClass.Name, "|" + productClass.Id + "|")); } ClassID.Items.Insert(0, new ListItem("所有分类", string.Empty)); BrandID.DataSource = ProductBrandBLL.ReadList(); BrandID.DataTextField = "Name"; BrandID.DataValueField = "ID"; BrandID.DataBind(); BrandID.Items.Insert(0, new ListItem("所有品牌", string.Empty)); ClassID.Text = RequestHelper.GetQueryString <string>("ClassID"); BrandID.Text = RequestHelper.GetQueryString <string>("BrandID"); Key.Text = RequestHelper.GetQueryString <string>("Key"); StartAddDate.Text = RequestHelper.GetQueryString <string>("StartAddDate"); EndAddDate.Text = RequestHelper.GetQueryString <string>("EndAddDate"); IsSpecial.Text = RequestHelper.GetQueryString <string>("IsSpecial"); IsNew.Text = RequestHelper.GetQueryString <string>("IsNew"); IsHot.Text = RequestHelper.GetQueryString <string>("IsHot"); IsTop.Text = RequestHelper.GetQueryString <string>("IsTop"); List <ProductInfo> productList = new List <ProductInfo>(); ProductSearchInfo productSearch = new ProductSearchInfo(); productSearch.Key = RequestHelper.GetQueryString <string>("Key"); productSearch.ClassId = RequestHelper.GetQueryString <string>("ClassID"); productSearch.BrandId = RequestHelper.GetQueryString <int>("BrandID"); productSearch.IsSpecial = RequestHelper.GetQueryString <int>("IsSpecial"); productSearch.IsNew = RequestHelper.GetQueryString <int>("IsNew"); productSearch.IsHot = RequestHelper.GetQueryString <int>("IsHot"); productSearch.IsSale = (int)BoolType.True; productSearch.IsTop = RequestHelper.GetQueryString <int>("IsTop"); productSearch.StartAddDate = RequestHelper.GetQueryString <DateTime>("StartAddDate"); productSearch.EndAddDate = ShopCommon.SearchEndDate(RequestHelper.GetQueryString <DateTime>("EndAddDate")); productSearch.IsDelete = 0;//没有逻辑删除的商品 PageSize = Session["AdminPageSize"] == null ? 20 : Convert.ToInt32(Session["AdminPageSize"]); AdminPageSize.Text = Session["AdminPageSize"] == null ? "20" : Session["AdminPageSize"].ToString(); productList = ProductBLL.SearchList(CurrentPage, PageSize, productSearch, ref Count); BindControl(productList, RecordList, MyPager); } }
/// <summary> /// 删除一条地区数据 /// </summary> protected void DeleteRegion() { CheckAdminPower("ReadProduct", PowerCheckType.Single); id = RequestHelper.GetQueryString <int>("ID"); if (RegionBLL.ReadRegionChildList(id).Count > 0) { Response.Write("error"); Response.End(); } else { RegionBLL.DeleteRegion(id); AdminLogBLL.Add(ShopLanguage.ReadLanguage("DeleteRecord"), ShopLanguage.ReadLanguage("Region"), id); } }
/// <summary> /// 页面加载 /// </summary> protected override void PageLoad() { base.PageLoad(); //singleUnlimitClass.DataSource = RegionBLL.ReadRegionUnlimitClass(); var regionList = RegionBLL.ReadRegionUnlimitClass(); regionList.RemoveAll(k => k.FatherID == 0 || (k.FatherID == 1 && k.ClassID != 27)); regionList.ForEach(k => { if (k.FatherID == 1) { k.FatherID = 0; } }); singleUnlimitClass.DataSource = regionList; //singleUnlimitClass.ClassID = "|27|"; //singleUnlimitClass.Prefix = "湖南"; SearchCondition(); LoadHotProductList(); artId = RequestHelper.GetQueryString <int>("ID"); if (artId <= 0) { artId = 1; } thisArticle = ArticleBLL.Read(artId); switch (thisArticle.ClassId) { case "|58|54|": topNav = 2; break; case "|58|55|": topNav = 3; break; case "|58|56|": topNav = 4; break; case "|58|57|": topNav = 5; break; default: break; } proPhotoList = ProductPhotoBLL.ReadList(artId, 1); if (RequestHelper.GetQueryString <string>("Action") == "UseMessage") { UseMessage(); } }