public void BinClassData() { ProductClassSystem productClassSystem = new ProductClassSystem(); ClassID.DataSource = productClassSystem.Get_ProductClass(0); ClassID.DataBind(); }
/// <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); ClassID.DataSource = ProductClassBLL.ReadNamedList(); ClassID.DataTextField = "Name"; ClassID.DataValueField = "ID"; ClassID.DataBind(); 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"); ProductSearchInfo productSearch = new ProductSearchInfo(); productSearch.IsSale = (int)BoolType.True; productSearch.IsDelete = 0;//未删除的 productSearch.StandardType = (int)ProductStandardType.No; productSearch.Key = RequestHelper.GetQueryString <string>("Key"); productSearch.ClassId = RequestHelper.GetQueryString <string>("ClassID"); productSearch.BrandId = RequestHelper.GetQueryString <int>("BrandID"); BindControl(ProductBLL.SearchList(CurrentPage, PageSize, productSearch, ref Count), RecordList, MyPager); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { NewClassSystem newClassSystem = new NewClassSystem(); ClassID.DataSource = newClassSystem.Get_NewClass(0); ClassID.DataBind(); } }
public void BinClassData() { NewClassSystem newClassSystem = new NewClassSystem(); ClassID.DataSource = newClassSystem.Get_NewClass(0); ClassID.DataTextField = "ClassName"; ClassID.DataValueField = "ClassID"; ClassID.DataBind(); }
public void BinClassData() { ProductClassSystem productClass = new ProductClassSystem(); ClassID.DataSource = productClass.Get_ProductClass(0); ClassID.DataTextField = "ClassName"; ClassID.DataValueField = "ClassID"; ClassID.DataBind(); }
public void BinData() { List <ProductClass> List_ProductClass = new List <ProductClass>(); ProductClassSystem productClassSystem = new ProductClassSystem(); List_ProductClass = productClassSystem.Get_ProductClass(0); ClassID.DataSource = List_ProductClass; ClassID.DataTextField = "ClassName"; ClassID.DataValueField = "ClassID"; ClassID.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ClassID.DataSource = WebBLL.Tbl_ClassManager.GetTbl_ClassByAllParentID(79); ClassID.DataTextField = "ClassName"; ClassID.DataValueField = "ClassName"; ClassID.DataBind(); ClassID.Items.Insert(0, new ListItem("选择信息分类", "")); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //遍历绑定人员列表 WebBLL.Tbl_UserManager.GetUsersByListBox(UserNameTo); ClassID.DataSource = WebBLL.Tbl_ClassManager.GetTbl_ClassByAllParentID(45); ClassID.DataTextField = "ClassName"; ClassID.DataValueField = "ClassName"; ClassID.DataBind(); ClassID.Items.Insert(0, new ListItem("选择信息分类", "")); this.AddDate.Text = Convert.ToString(System.DateTime.Now); } }
public void Bind() { ClassID.DataSource = WebBLL.Tbl_ClassManager.GetTbl_ClassByAllParentID(79); ClassID.DataTextField = "ClassName"; ClassID.DataValueField = "ClassName"; ClassID.DataBind(); int ID = Convert.ToInt32(Request.QueryString["ID"]); WebModels.Tbl_Info info = WebBLL.Tbl_InfoManager.GetTbl_InfoById(ID); this.ClassID.Text = info.ClassID.ToString(); this.I_Title.Text = info.I_Title; this.I_Content.Value = info.I_Content; this.AddDate.Text = Convert.ToString(info.AddDate); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //遍历绑定人员列表 WebBLL.Tbl_UserManager.GetUsersByListBox(UserNameTo); //设置只读权限 if (Request.QueryString["type"] == "read") { btnSave.Visible = false; ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "$(function(){$('input').attr('readonly', 'readonly');$('select').attr('disabled', 'true');$('textarea').attr('readonly', 'readonly');});", true); } ClassID.DataSource = WebBLL.Tbl_ClassManager.GetTbl_ClassByAllParentID(45); ClassID.DataTextField = "ClassName"; ClassID.DataValueField = "ClassName"; ClassID.DataBind(); Bind(); } }