예제 #1
0
 public DataTable GetKimtecAttributesForCategory(int kimtecCategoryID, bool addSelect)
 {
     DataTable kimtecAttributes = new KimtecDL().GetKimtecAttributesForCategory(kimtecCategoryID);
     if(addSelect)
     {
         DataRow newRow = kimtecAttributes.NewRow();
         newRow["kimtecAttributeID"] = 0;
         newRow["name"] = "Odaberi";
         kimtecAttributes.Rows.InsertAt(newRow, 0);
     }
     return kimtecAttributes;
 }
예제 #2
0
        public DataTable GetCategories(int? parentID, int? categoryID, bool addSelect)
        {
            DataTable categories = new KimtecDL().GetCategories(parentID, categoryID);

            if(addSelect)
            {
                DataRow newRow = categories.NewRow();
                newRow[0] = 0;
                newRow[1] = "Odaberi kategoriju";
                newRow[2] = 0;
                newRow[3] = 0;
                newRow[4] = 0;
                categories.Rows.InsertAt(newRow, 0);
            }
            return categories;
        }