protected void Page_Load(object sender, EventArgs e) { userId = Convert.ToInt32(Session["UserID"]); userName = Session["UserName"].ToString(); itemTypeList = bll.GetItemTypeList(); catTypeList = cat_bll.GetUserCategoryList(userId); zhuanTiList = zt_bll.GetZhuanTiList(userId); cardList = card_bll.GetCardList(userId); }
protected void Page_Load(object sender, EventArgs e) { userId = Convert.ToInt32(Session["UserID"]); curDate = Utility.GetRequestDate(Request.QueryString["date"]).ToString("yyyy-MM-dd"); showType = Request.QueryString["showType"] ?? "m"; itemType = Request.QueryString["itemType"] ?? ""; regionType = Request.QueryString["regionType"] ?? "null"; catId = Request.QueryString["catId"] ?? ""; ztId = Request.QueryString["ztId"] ?? "null"; cardId = Request.QueryString["cardId"] ?? ""; recommend = Request.QueryString["recommend"] ?? "null"; keywords = Request.QueryString["keywords"] ?? ""; sort = Request.QueryString["sort"] ?? "ItemBuyDate"; by = Request.QueryString["by"] ?? "desc"; this.sortHid.Value = (by == "desc" ? "asc" : "desc"); catTypeList = CacheHelper.GetFromCache("cattypeedit", cat_bll.GetUserCategoryList(userId)); itemTypeList = CacheHelper.GetFromCache("itemtypeedit", bll.GetItemTypeList()); cardList = CacheHelper.GetFromCache("cardlistedit", card_bll.GetCardList(userId)); ztList = CacheHelper.GetFromCache("ztlistedit", zt_bll.GetZhuanTiList(userId)); if (!IsPostBack) { BindShowTypeDropDown(); BindItemGrid(); BindItemTypeListBox(); BindCategoryTypeListBox(); BindRegionTypeListBox(); BindZhuanTiListBox(); BindCardListBox(); BindRecommendListBox(); GetQueryInfo(); } }
protected void Page_Load(object sender, EventArgs e) { userId = Convert.ToInt32(Session["UserID"]); userName = Session["UserName"].ToString(); itemTypeList = bll.GetItemTypeList(); catTypeList = cat_bll.GetUserCategoryList(userId); zhuanTiList = zt_bll.GetZhuanTiList(userId); cardList = card_bll.GetCardList(userId); if (!IsPostBack) { this.ItemBuyDate1.Attributes.Add("readonly", "readonly"); this.ItemBuyDate2.Attributes.Add("readonly", "readonly"); string today = DateTime.Now.ToString("yyyy-MM-dd"); string first = DateHelper.GetMonthFirst(DateTime.Now).ToString("yyyy-MM-dd"); this.ItemBuyDate1.Text = first; this.ItemBuyDate2.Text = today; } }
protected void Page_Load(object sender, EventArgs e) { userId = Convert.ToInt32(Session["UserID"]); ztId = Convert.ToInt32(Request.QueryString["ztid"]); catTypeList = cat_bll.GetUserCategoryList(userId); itemTypeList = item_bll.GetItemTypeList(); cardList = card_bll.GetCardList(userId); if (!IsPostBack) { BindGrid(); BindInsert(); if (Session["TodayDate"] != null) { string today = Session["TodayDate"].ToString(); this.ItemBuyDateEmpIns.Text = today; } } }
protected void Page_Load(object sender, EventArgs e) { userId = Convert.ToInt32(Session["UserID"]); today = Utility.GetRequestDate(Request.QueryString["date"]); catTypeList = cat_bll.GetUserCategoryList(userId); itemTypeList = bll.GetItemTypeList(); cardList = card_bll.GetCardList(userId); if (!IsPostBack) { BindGrid(); BindTotal(); BindInsert(); //专题 this.ZhuanTiDown.DataSource = zt_bll.GetZhuanTiList(userId); this.ZhuanTiDown.DataTextField = "ZhuanTiName"; this.ZhuanTiDown.DataValueField = "ZTID"; this.ZhuanTiDown.DataBind(); this.ZhuanTiDown.Items.Insert(0, new ListItem("请选择", "0")); } }