?? iteminfo.cs
字號(hào):
?using System;
/// <summary>
/// 圖書的詳細(xì)信息
/// </summary>
[Serializable]
public class ItemInfo
{
// 內(nèi)部變量
private int id;
private string name;
private int quantity;
private decimal price;
private string productName;
private string image;
private int supplierId;
private int productId;
public ItemInfo() { }
/// <summary>
/// 帶參數(shù)的構(gòu)造函數(shù)
/// </summary>
/// <param name="id">產(chǎn)品詳細(xì)信息ID</param>
/// <param name="name">書名</param>
/// <param name="quantity">庫存量</param>
/// <param name="price">價(jià)格</param>
/// <param name="image">封面地址</param>
/// <param name="categoryId">目錄ID</param>
/// <param name="productId">圖書Id</param>
public ItemInfo(int id, string name, int quantity, decimal price, string image, int supplierId, int productId)
{
this.id = id;
this.name = name;
this.quantity = quantity;
this.price = price;
this.image = image;
this.supplierId = supplierId;
this.productId = productId;
}
//公共屬性
public int Id
{
get { return id; }
set { id = value; }
}
public string Name
{
get { return name; }
set { name = value; }
}
public int Quantity
{
get { return quantity; }
set { quantity = value; }
}
public decimal Price
{
get { return price; }
set { price = value; }
}
public string Image
{
get { return image; }
set { image = value; }
}
public int SupplierId
{
get { return supplierId; }
set { supplierId = value; }
}
public int ProductId
{
get { return productId; }
set { productId = value; }
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -