BookInfo.cs
上传用户:gooyliu
上传日期:2018-09-29
资源大小:5816k
文件大小:4k
源码类别:

.net编程

开发平台:

C#

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Model
  5. {
  6.     public class BookInfo
  7.     {
  8.          #region 私有成员
  9.         private string _bookID;
  10.         private string _bookName;
  11.         private string _bookIndex;
  12.         private int _bookTypeID;
  13.         private string _author;
  14.         private string _publish;
  15.         private double  _price;
  16.         private  DateTime  _publishDate;
  17.         private string _abstract;
  18.         private string _keyword;
  19.         private int _bookStatus;
  20.         private DateTime _registeDate;
  21.        #endregion
  22.        
  23.         
  24.         
  25.         public BookInfo()
  26.         {
  27.         }
  28.         public BookInfo(string bookID, string bookName, string bookIndex, int bookType, string author, string publish, double price, DateTime publishDate, string abstrac, string keyword, int bookStatus, DateTime registeDate)
  29.         {
  30.             this._bookID = bookID;
  31.             this._bookName = bookName;
  32.             this._bookIndex = bookIndex;
  33.             this._bookTypeID = bookType;
  34.             this._author = author;
  35.             this._publish = publish;
  36.             this._price=price ;
  37.             this._publishDate=publishDate ;
  38.             this._abstract = abstrac;
  39.             this._keyword = keyword;
  40.             this._bookStatus = bookStatus;
  41.             this._registeDate = registeDate;
  42.         }
  43.          #region 属性
  44.         public string BookID
  45.         {
  46.             set
  47.             {
  48.                 this._bookID = value;
  49.             }
  50.             get
  51.             {
  52.                 return this._bookID;
  53.             }
  54.         }
  55.         public string BookName
  56.         {
  57.             set
  58.             {
  59.                 this._bookName = value; 
  60.             }
  61.             get
  62.             {
  63.                 return this._bookName;             
  64.             }
  65.         }
  66.         public string BookIndex
  67.         {
  68.             set
  69.             {
  70.                 this._bookIndex = value;
  71.             }
  72.             get
  73.             {
  74.                 return this._bookIndex;
  75.             }
  76.         }
  77.         public int BookTypeID
  78.         {
  79.             set
  80.             {
  81.                 this._bookTypeID = value;
  82.             }
  83.             get
  84.             {
  85.                 return this._bookTypeID;
  86.             }
  87.         }
  88.         public string Author
  89.         {
  90.             set
  91.             {
  92.                 this._author = value;
  93.             }
  94.             get
  95.             {
  96.                 return this._author;
  97.             }
  98.         }
  99.         public string Publish
  100.         {
  101.             set
  102.             {
  103.                 this._publish = value;
  104.             }
  105.             get
  106.             {
  107.                 return this._publish;
  108.             }
  109.         }
  110.         public double Price
  111.         {
  112.             set
  113.             {
  114.                 this._price =value ;
  115.             }
  116.            get 
  117.            {
  118.                return this._price ;
  119.            }
  120.         }
  121.         public DateTime PublishDate
  122.         {
  123.             set 
  124.             {
  125.                 this._publishDate =value;
  126.             }
  127.             get
  128.             {
  129.                 return this._publishDate ;
  130.             }
  131.         }
  132.         public string Abstrac
  133.         {
  134.             set
  135.             {
  136.                 this._abstract = value;
  137.             }
  138.             get
  139.             {
  140.                 return this._abstract;
  141.             }
  142.         }
  143.         public string Keyword
  144.         {
  145.             set
  146.             {
  147.                 this._keyword = value;
  148.             }
  149.             get
  150.             {
  151.                 return this._keyword;
  152.             }
  153.         }
  154.         public int  BookStatus
  155.         {
  156.             set
  157.             {
  158.                 this._bookStatus = value;
  159.             }
  160.             get
  161.             {
  162.                 return this._bookStatus;
  163.             }
  164.         }
  165.         public DateTime  RegisteDate
  166.         {
  167.             set
  168.             {
  169.                 this._registeDate = value;
  170.             }
  171.             get
  172.             {
  173.                 return this._registeDate;
  174.             }
  175.         }       
  176.        
  177.         #endregion
  178.     }
  179. }