private void BindData() { MagicCategoryModel model = bll.GetModel(CategoryID); txtCateName.Text = model.CategoryName; chkIsHide.Checked = model.IsHide; }
protected void BindData() { if (CategoryID != -1) { MagicCategoryBll CategoryBll = new MagicCategoryBll(); MagicCategoryModel Category = CategoryBll.GetModel(CategoryID); TextBox_Category.Text = Category.CategoryName; } else { throw new Exception("未选择分类"); } }
protected void BindData() { if (CategoryID != -1) { MagicCategoryBll CategoryBll = new MagicCategoryBll(); MagicCategoryModel Category = CategoryBll.GetModel(CategoryID); TextBox_Category.Text = Category.CategoryName; DropDown_Usage.DataSource = DataTableUtil.GetEnumKeyValue(typeof(SecondhandProductUsageCondition)); DropDown_Usage.DataTextField = "key"; DropDown_Usage.DataValueField = "value"; DropDown_Usage.DataBind(); } else { throw new Exception("未选择分类"); } }
private void BindData() { MagicCategoryModel model = bll.GetModel(ParentID); txtParentCate.Text = model == null?"无从属父类":model.CategoryName; }
private void Intialize() { MagicCategoryModel model = InitialCategoryID == -1 ? null : bll.GetModel(InitialCategoryID); BindCategory(0, 1, model == null ? null : model.CategoryPath); }