View Single Post
  #25 (permalink)  
Old November 6th, 2007, 07:10 AM
d-print d-print is offline
Authorized User
 
Join Date: Oct 2007
Location: portsmouth, Hampshire, United Kingdom.
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

DEPARTMENTDETAILS.CS:-

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace MB.TheBeerHouse.DAL
{
   public class DepartmentDetails
   {
      public DepartmentDetails() { }

      public DepartmentDetails(int id, DateTime addedDate, string addedBy, string title, int importance, string description, string imageUrl, int stCategoryID)
      {
         this.ID = id;
         this.AddedDate = addedDate;
         this.AddedBy = addedBy;
         this.Title = title;
         this.Importance = importance;
         this.Description = description;
         this.ImageUrl = imageUrl;
         this.StCategoryID = id;
      }

      private int _id = 0;
       public int ID
       {
           get { return _id;}
           set { _id = value;}
       }

      private DateTime _addedDate = DateTime.Now;
      public DateTime AddedDate
      {
         get { return _addedDate; }
         set { _addedDate = value; }
      }

      private string _addedBy = "";
      public string AddedBy
      {
         get { return _addedBy; }
         set { _addedBy = value; }
      }

      private string _title = "";
      public string Title
      {
         get { return _title; }
         set { _title = value; }
      }

      private int _importance = 0;
      public int Importance
      {
         get { return _importance; }
         set { _importance = value; }
      }

      private string _description = "";
      public string Description
      {
         get { return _description; }
         set { _description = value; }
      }

      private string _imageUrl = "";
      public string ImageUrl
      {
         get { return _imageUrl; }
         set { _imageUrl = value; }
      }

      private int _stCategoryid = 0;
      public int StCategoryID
      {
          get { return _stCategoryid; }
          set { _stCategoryid = value; }
      }
   }
}

JOHN