Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var categoryList = Foresight.DataAccess.CKCategory.GetCKCategories();

            Foresight.DataAccess.CKCategory defaultCategory = new Foresight.DataAccess.CKCategory()
            {
                ID           = 0,
                CategoryName = "全部",
            };
            categoryList.Insert(0, defaultCategory);
        }
 private void SetInfo(Foresight.DataAccess.CKCategory data)
 {
     this.tdCategoryName.Value = data.CategoryName;
     this.tdRemark.Value       = data.CategoryDesc;
     if (data.CategoryType.Equals(Utility.EnumModel.CKCategoryType.warehouse.ToString()))
     {
         this.tdCategoryType.InnerHtml = "仓库";
     }
     else if (data.CategoryType.Equals(Utility.EnumModel.CKCategoryType.category.ToString()))
     {
         this.tdCategoryType.InnerHtml = "仓库";
     }
 }